lib/avo/fields/has_base_field.rb in avo-1.19.1.pre.9 vs lib/avo/fields/has_base_field.rb in avo-1.19.1.pre.10

- old
+ new

@@ -1,13 +1,15 @@ module Avo module Fields class HasBaseField < BaseField attr_accessor :display + attr_accessor :scope def initialize(id, **args, &block) super(id, **args, &block) @display = args[:display].present? ? args[:display] : :show + @scope = args[:scope].present? ? args[:scope] : nil end def resource Avo::App.get_resource_by_model_name @model.class end