Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'rails4'
  • Loading branch information
justinfrench committed Jan 31, 2013
2 parents 6213963 + 4eaeab1 commit be6aace
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/formtastic/inputs/boolean_input.rb
Expand Up @@ -101,11 +101,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 be6aace

Please sign in to comment.