class BusinessCatalyst::CSV::TemplateIDTransformer
Public Instance Methods
transform()
click to toggle source
# File lib/business_catalyst/csv/transformers.rb, line 39 def transform if input.kind_of?(Symbol) case input when :default 0 when :none -1 when :parent -2 else raise InvalidInputError, "#{input} is not a valid template ID" end else input end end