Skip to content

Commit 17b0777

Browse files
committed
Restore compatibility with Formtastic 2.0
1 parent 6ee76d4 commit 17b0777

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/active_admin/inputs/filter_boolean_input.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ def search_conditions
2727
/(is_true|is_false|is_present|is_blank|is_null|is_not_null)\z/
2828
end
2929

30+
def boolean_checked?(value, checked_value)
31+
defined?(super) ? super : ActionView::Helpers::InstanceTag.check_box_checked?(value, checked_value)
32+
end
33+
3034
end
3135
end
3236
end

0 commit comments

Comments
 (0)