Sha256: 5a491745b06aec2f3a8d14f45f9c469e4ec714b509b15f32cfb02da1c7c46c8a

Contents?: true

Size: 190 Bytes

Versions: 12

Compression:

Stored size: 190 Bytes

Contents

module Madmin
  module Fields
    class String < Field
      def searchable?
        options.fetch(:searchable, model.column_names.include?(attribute_name.to_s))
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
madmin-2.0.0 lib/madmin/fields/string.rb
madmin-1.2.11 lib/madmin/fields/string.rb
madmin-1.2.10 lib/madmin/fields/string.rb
madmin-1.2.9 lib/madmin/fields/string.rb
madmin-1.2.8 lib/madmin/fields/string.rb
madmin-1.2.7 lib/madmin/fields/string.rb
madmin-1.2.6 lib/madmin/fields/string.rb
madmin-1.2.5 lib/madmin/fields/string.rb
madmin-1.2.4 lib/madmin/fields/string.rb
madmin-1.2.3 lib/madmin/fields/string.rb
madmin-1.2.2 lib/madmin/fields/string.rb
madmin-1.2.1 lib/madmin/fields/string.rb