Commit fbd9acb53bea8679c657e50c7c2dfa48364005eb
1 parent
7b43d122
Exists in
master
and in
29 other branches
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 | 162 | # |
163 | 163 | # Current implementation generates a <label> tag for +label+ and wrap the |
164 | 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 | 166 | content_tag('div', content_tag('div', content_tag('label', label)) + html_for_field, :class => 'formfield') |
167 | 167 | end |
168 | + alias_method :display_form_field, :labelled_form_field | |
168 | 169 | |
169 | 170 | def display_submit_tag(label) |
170 | 171 | content_tag('p', submit_tag( label, :class => 'submit'), :class => 'submitline') |
171 | 172 | end |
172 | 173 | |
173 | - alias_method :labelled_form_field, :display_form_field | |
174 | 174 | |
175 | 175 | def labelled_form_for(name, object = nil, options = {}, &proc) |
176 | 176 | object ||= instance_variable_get("@#{name}") | ... | ... |