Skip to content

Commit

Permalink
Options should also be set when calling labels.
Browse files Browse the repository at this point in the history
Signed-off-by: Justin French <justin@indent.com.au>
  • Loading branch information
josevalim authored and justinfrench committed Mar 5, 2009
1 parent 6bf8ed7 commit 57b2263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/formtastic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ def label_text(method, options) #:nodoc:

def input_label(method, options, text = nil) #:nodoc:
text ||= label_text(method, options)
template.label(@object_name, method, text)
template.label(@object_name, method, text, set_options(options))
end

def required_or_optional_string(required) #:nodoc:
Expand Down

0 comments on commit 57b2263

Please sign in to comment.