Skip to content

Commit

Permalink
Don't use ActionView::Helpers::InstanceTag.check_box_checked? anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
martijn committed Jan 29, 2013
1 parent f68d4c8 commit 71a3bd2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/formtastic/inputs/boolean_input.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,7 @@ def input_html_options_name
end

def checked?
if defined? ActionView::Helpers::InstanceTag
object && ActionView::Helpers::InstanceTag.check_box_checked?(object.send(method), checked_value)
else
object && boolean_checked?(object.send(method), checked_value)
end
object && boolean_checked?(object.send(method), checked_value)
end

private
Expand Down

0 comments on commit 71a3bd2

Please sign in to comment.