Sha256: d8af3d85ba113a3522626e667adaab0ecfb911cd746679b006ac0b0c935555ab

Contents?: true

Size: 652 Bytes

Versions: 10

Compression:

Stored size: 652 Bytes

Contents

# frozen_string_literal: true

module Katalyst
  module Tables
    module Collection
      module Type
        module Helpers
          # Adds support default_value, multiple?, and filterable? to ActiveModel::Type::Value
          module Extensions
            refine(::ActiveModel::Type::Value) do
              def default_value
                nil
              end

              def multiple?
                false
              end

              def filterable?
                false
              end

              def suggestions(...)
                []
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
katalyst-tables-3.7.0 lib/katalyst/tables/collection/type/helpers/extensions.rb
katalyst-tables-3.6.2 lib/katalyst/tables/collection/type/helpers/extensions.rb
katalyst-tables-3.6.1 lib/katalyst/tables/collection/type/helpers/extensions.rb
katalyst-tables-3.6.0 lib/katalyst/tables/collection/type/helpers/extensions.rb
katalyst-tables-3.5.5 lib/katalyst/tables/collection/type/helpers/extensions.rb
katalyst-tables-3.5.4 lib/katalyst/tables/collection/type/helpers/extensions.rb
katalyst-tables-3.5.3 lib/katalyst/tables/collection/type/helpers/extensions.rb
katalyst-tables-3.5.2 lib/katalyst/tables/collection/type/helpers/extensions.rb
katalyst-tables-3.5.1 lib/katalyst/tables/collection/type/helpers/extensions.rb
katalyst-tables-3.5.0 lib/katalyst/tables/collection/type/helpers/extensions.rb