Sha256: 97f90f18310f8d6d6e913bc06cc2a5ab025f6e2f7b1d244f17ded521ee3d9d61

Contents?: true

Size: 600 Bytes

Versions: 46

Compression:

Stored size: 600 Bytes

Contents

module ActiveAdmin
  module Filters
    module DSL

      # For docs, please see ActiveAdmin::Filters::ResourceExtension#add_filter
      def filter(attribute, options = {})
        config.add_filter(attribute, options)
      end

      # For docs, please see ActiveAdmin::Filters::ResourceExtension#delete_filter
      def remove_filter(attribute)
        config.remove_filter(attribute)
      end

      # For docs, please see ActiveAdmin::Filters::ResourceExtension#preserve_default_filters!
      def preserve_default_filters!
        config.preserve_default_filters!
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 2 rubygems

Version Path
lalala-4.0.0.dev.58 vendor/deps/active_admin/lib/active_admin/filters/dsl.rb
lalala-4.0.0.dev.57 vendor/deps/active_admin/lib/active_admin/filters/dsl.rb
lalala-4.0.0.dev.56 vendor/deps/active_admin/lib/active_admin/filters/dsl.rb
lalala-4.0.0.dev.50 vendor/deps/active_admin/lib/active_admin/filters/dsl.rb
lalala-4.0.0.dev.46 vendor/deps/active_admin/lib/active_admin/filters/dsl.rb
activeadmin-0.5.1 lib/active_admin/filters/dsl.rb