Sha256: 9177e6ac3d58d0a6987a722384794e1a98feca027560b3cdf523fb6afbc33a96
Contents?: true
Size: 423 Bytes
Versions: 3
Compression:
Stored size: 423 Bytes
Contents
module ActiveAdmin module Inputs class FilterSelectInput < ::Formtastic::Inputs::SelectInput include FilterBase def input_name "#{super}_eq" end def input_options super.merge(:include_blank => I18n.t('active_admin.any')) end def method super.to_s.sub(/_id$/,'').to_sym end def extra_input_html_options {} end end end end
Version data entries
3 entries across 3 versions & 1 rubygems