Skip to content

Commit

Permalink
don't show hints on hidden inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
nickyp committed Mar 19, 2010
1 parent 4db9cfe commit 694bffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/formtastic.rb
Expand Up @@ -100,7 +100,7 @@ def input(method, options = {})
end

input_parts = @@inline_order.dup
input_parts.delete(:errors) if options[:as] == :hidden
input_parts = input_parts - [:errors, :hints] if options[:as] == :hidden

list_item_content = input_parts.map do |type|
send(:"inline_#{type}_for", method, options)
Expand Down

0 comments on commit 694bffa

Please sign in to comment.