Permalink
Browse files

Merge pull request #915 from bluerail/rails4

Don't use ActionView::Helpers::InstanceTag.check_box_checked? anymore
  • Loading branch information...
2 parents f68d4c8 + 71a3bd2 commit 4eaeab1dacd03e02a3185fb0a209dedeb789c912 @sobrinho sobrinho committed Jan 31, 2013
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/formtastic/inputs/boolean_input.rb
@@ -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

0 comments on commit 4eaeab1

Please sign in to comment.