Permalink
Browse files

s/downcase/underscore/

  • Loading branch information...
1 parent c6af4f6 commit eb4381f6f3f0d72e4f4ca39a02daf79797230618 @fesplugas fesplugas committed Aug 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/helpers/admin/resources/data_types/belongs_to_helper.rb
View
2 app/helpers/admin/resources/data_types/belongs_to_helper.rb
@@ -12,7 +12,7 @@ def typus_belongs_to_field(attribute, form)
related_fk = association.foreign_key
html_options = { :disabled => attribute_disabled?(attribute) }
label_text = @resource.human_attribute_name(attribute)
- options = { :attribute => "#{@resource.name.downcase}_#{related_fk}" }
+ options = { :attribute => "#{@resource.name.underscore}_#{related_fk}" }
label_text = @resource.human_attribute_name(attribute)
if (text = build_label_text_for_belongs_to(related, html_options, options))

0 comments on commit eb4381f

Please sign in to comment.