Sha256: 8702ef943b0f70a6d77a83df91366bf6384852bae0586a7aecca4a7e3a9b6968

Contents?: true

Size: 634 Bytes

Versions: 31

Compression:

Stored size: 634 Bytes

Contents

# frozen_string_literal: true
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#remove_filter
      def remove_filter(*attributes)
        config.remove_filter(*attributes)
      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

31 entries across 31 versions & 1 rubygems

Version Path
activeadmin-4.0.0.beta14 lib/active_admin/filters/dsl.rb
activeadmin-4.0.0.beta13 lib/active_admin/filters/dsl.rb
activeadmin-4.0.0.beta12 lib/active_admin/filters/dsl.rb
activeadmin-3.2.5 lib/active_admin/filters/dsl.rb
activeadmin-4.0.0.beta11 lib/active_admin/filters/dsl.rb
activeadmin-3.2.4 lib/active_admin/filters/dsl.rb
activeadmin-4.0.0.beta10 lib/active_admin/filters/dsl.rb
activeadmin-4.0.0.beta9 lib/active_admin/filters/dsl.rb
activeadmin-3.2.3 lib/active_admin/filters/dsl.rb
activeadmin-4.0.0.beta8 lib/active_admin/filters/dsl.rb
activeadmin-4.0.0.beta7 lib/active_admin/filters/dsl.rb
activeadmin-3.2.2 lib/active_admin/filters/dsl.rb
activeadmin-4.0.0.beta6 lib/active_admin/filters/dsl.rb
activeadmin-3.2.1 lib/active_admin/filters/dsl.rb
activeadmin-4.0.0.beta5 lib/active_admin/filters/dsl.rb
activeadmin-4.0.0.beta4 lib/active_admin/filters/dsl.rb
activeadmin-4.0.0.beta3 lib/active_admin/filters/dsl.rb
activeadmin-4.0.0.beta2 lib/active_admin/filters/dsl.rb
activeadmin-4.0.0.beta1 lib/active_admin/filters/dsl.rb
activeadmin-3.2.0 lib/active_admin/filters/dsl.rb