Sha256: f5bb786dd6094bc5ca9f775d506d8926968d051998b480747e10d9c0d51f0102
Contents?: true
Size: 560 Bytes
Versions: 64
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
64 entries across 64 versions & 6 rubygems