Class: Madmin::Fields::String
- Inherits:
-
Madmin::Field
- Object
- Madmin::Field
- Madmin::Fields::String
- Defined in:
- lib/madmin/fields/string.rb
Instance Attribute Summary
Attributes inherited from Madmin::Field
#attribute_name, #model, #options, #resource
Instance Method Summary collapse
Methods inherited from Madmin::Field
#default_index_attributes, field_type, #initialize, #required?, #to_param, #to_partial_path, #value, #visible?
Constructor Details
This class inherits a constructor from Madmin::Field
Instance Method Details
#searchable? ⇒ Boolean
4 5 6 |
# File 'lib/madmin/fields/string.rb', line 4 def searchable? .fetch(:searchable, model.column_names.include?(attribute_name.to_s)) end |