cleanup Labelling#label_html_options #865

Merged
merged 1 commit into from Jul 3, 2012
+4 −7
Split
@@ -10,13 +10,10 @@ def label_html
end
def label_html_options
- # opts = options_for_label(options) # TODO
- opts = {}
- opts[:for] ||= input_html_options[:id]
- opts[:class] = [opts[:class]]
- opts[:class] << 'label'
-
- opts
+ {
+ :for => input_html_options[:id],
+ :class => ['label'],
+ }
end
def label_text