Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

s/downcase/underscore/

  • Loading branch information...
commit eb4381f6f3f0d72e4f4ca39a02daf79797230618 1 parent c6af4f6
@fesplugas fesplugas authored
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))
Please sign in to comment.
Something went wrong with that request. Please try again.