lib/puffer/inputs.rb in puffer-0.0.11 vs lib/puffer/inputs.rb in puffer-0.0.12
- old
+ new
@@ -12,10 +12,10 @@
map_type :belongs_to, :has_one, :to => Puffer::Inputs::Association
map_type :has_many, :has_and_belongs_to_many, :to => Puffer::Inputs::CollectionAssociation
map_type :date, :time, :datetime, :timestamp, :to => Puffer::Inputs::DateTime
def self.map_field field
- mappings[field.type] || ("Puffer::Inputs::#{field.type.to_s.classify}".constantize rescue Puffer::Inputs::Base)
+ mappings[field.type] || ("Puffer::Inputs::#{field.type.to_s.camelize}".constantize rescue Puffer::Inputs::Base)
end
end
end