lib/avo/fields/has_base_field.rb in avo-2.13.2.pre.2 vs lib/avo/fields/has_base_field.rb in avo-2.13.3.pre.1
- old
+ new
@@ -4,17 +4,19 @@
attr_accessor :display
attr_accessor :scope
attr_accessor :attach_scope
attr_accessor :description
attr_accessor :discreet_pagination
+ attr_accessor :hide_search_input
def initialize(id, **args, &block)
super(id, **args, &block)
@scope = args[:scope].present? ? args[:scope] : nil
@attach_scope = args[:attach_scope].present? ? args[:attach_scope] : nil
@display = args[:display].present? ? args[:display] : :show
@searchable = args[:searchable] == true
+ @hide_search_input = args[:hide_search_input] || false
@description = args[:description]
@use_resource = args[:use_resource] || nil
@discreet_pagination = args[:discreet_pagination] || false
end