app/models/no_cms/blocks/layout.rb in nocms-blocks-1.1.1 vs app/models/no_cms/blocks/layout.rb in nocms-blocks-1.1.2
- old
+ new
@@ -45,10 +45,10 @@
def field field_name
field_name = field_name.to_sym
if fields.has_key? field_name
fields[field_name]
else
- field_name = field_name.to_s.gsub(/\_id$/, '')
+ field_name = field_name.to_s.gsub(/\_id$/, '').to_sym
fields[field_name] if fields.has_key? field_name
end
end
##