lib/avo/fields/has_base_field.rb in avo-2.5.2.pre.3 vs lib/avo/fields/has_base_field.rb in avo-2.5.2.pre.4
- old
+ new
@@ -1,15 +1,17 @@
module Avo
module Fields
class HasBaseField < BaseField
attr_accessor :display
attr_accessor :scope
+ attr_accessor :attach_scope
attr_accessor :description
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
@description = args[:description]
end