Sha256: c4bab4c6b4631c3fc538158c17c8fd053e113936b6dd9a202784740c77ee9e67

Contents?: true

Size: 285 Bytes

Versions: 4

Compression:

Stored size: 285 Bytes

Contents

module MightyGrid
  module Filters
    class EnumFilter < Base
      attr_reader :collection

      def initialize(options = {})
        self.class.default_options.merge!(collection: nil)

        super(options)

        @collection = @options[:collection]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mighty_grid-2.1.1 lib/mighty_grid/filters/enum_filter.rb
mighty_grid-2.1.0 lib/mighty_grid/filters/enum_filter.rb
mighty_grid-2.0.0 lib/mighty_grid/filters/enum_filter.rb
mighty_grid-2.0.0.rc1 lib/mighty_grid/filters/enum_filter.rb