Commit fbd9acb53bea8679c657e50c7c2dfa48364005eb

Authored by AntonioTerceiro
1 parent 7b43d122

ActionItem135: renaming method to reflect most common usage; inverted aliasing accordingly



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1098 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/helpers/application_helper.rb
@@ -162,15 +162,15 @@ module ApplicationHelper @@ -162,15 +162,15 @@ module ApplicationHelper
162 # 162 #
163 # Current implementation generates a <label> tag for +label+ and wrap the 163 # Current implementation generates a <label> tag for +label+ and wrap the
164 # label and the control with a <div> tag with class 'formfield' 164 # label and the control with a <div> tag with class 'formfield'
165 - def display_form_field(label, html_for_field) 165 + def labelled_form_field(label, html_for_field)
166 content_tag('div', content_tag('div', content_tag('label', label)) + html_for_field, :class => 'formfield') 166 content_tag('div', content_tag('div', content_tag('label', label)) + html_for_field, :class => 'formfield')
167 end 167 end
  168 + alias_method :display_form_field, :labelled_form_field
168 169
169 def display_submit_tag(label) 170 def display_submit_tag(label)
170 content_tag('p', submit_tag( label, :class => 'submit'), :class => 'submitline') 171 content_tag('p', submit_tag( label, :class => 'submit'), :class => 'submitline')
171 end 172 end
172 173
173 - alias_method :labelled_form_field, :display_form_field  
174 174
175 def labelled_form_for(name, object = nil, options = {}, &proc) 175 def labelled_form_for(name, object = nil, options = {}, &proc)
176 object ||= instance_variable_get("@#{name}") 176 object ||= instance_variable_get("@#{name}")