Sha256: a6611ba080c4316e1d8cecd0835009e11e966642696908a71ae88c26fd784d03

Contents?: true

Size: 423 Bytes

Versions: 9

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.gsub('_id','').to_sym
      end

      def extra_input_html_options
        {}
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
activeadmin-0.4.4 lib/active_admin/inputs/filter_select_input.rb
activeadmin-0.4.3 lib/active_admin/inputs/filter_select_input.rb
activeadmin-0.4.2 lib/active_admin/inputs/filter_select_input.rb
activeadmin-0.4.1 lib/active_admin/inputs/filter_select_input.rb
activeadmin-0.4.0 lib/active_admin/inputs/filter_select_input.rb
andrewroth_activeadmin-0.3.4.4 lib/active_admin/inputs/filter_select_input.rb
andrewroth_activeadmin-0.3.4.3 lib/active_admin/inputs/filter_select_input.rb
andrewroth_activeadmin-0.3.4.2 lib/active_admin/inputs/filter_select_input.rb
andrewroth_activeadmin-0.3.4.1 lib/active_admin/inputs/filter_select_input.rb