Sha256: c386dcf5d82966fd8e8a7d88136e1beeb895bf82d11cb6aba9156675b78c7695
Contents?: true
Size: 560 Bytes
Versions: 4
Compression:
Stored size: 560 Bytes
Contents
module ActiveAdmin module Inputs module Filters class BooleanInput < ::Formtastic::Inputs::SelectInput include Base def input_name return method if seems_searchable? "#{method}_eq" end def input_html_options_name "#{object_name}[#{input_name}]" # was "#{object_name}[#{association_primary_key}]" end # Provide the AA translation to the blank input field. def include_blank I18n.t "active_admin.any" if super end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems