lib/iron_bank/metadata.rb in iron_bank-2.0.0 vs lib/iron_bank/metadata.rb in iron_bank-2.0.1

- old
+ new

@@ -26,11 +26,11 @@ @schema ||= IronBank::Schema.for(object_name) end def with_schema fields.each do |field| - method_name = IronBank::Utils.underscore(field) - define_method(:"#{method_name}") { remote[field] } + field_name = IronBank::Utils.underscore(field).to_sym + define_method(:"#{field_name}") { remote[field_name] } end end end end