lib/avo/fields/has_base_field.rb in avo-2.18.1 vs lib/avo/fields/has_base_field.rb in avo-2.19.0

- old
+ new

@@ -5,10 +5,11 @@ attr_accessor :scope attr_accessor :attach_scope attr_accessor :description attr_accessor :discreet_pagination attr_accessor :hide_search_input + attr_reader :link_to_child_resource def initialize(id, **args, &block) super(id, **args, &block) @scope = args[:scope].present? ? args[:scope] : nil @@ -17,9 +18,10 @@ @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 + @link_to_child_resource = args[:link_to_child_resource] || false end def searchable @searchable && ::Avo::App.license.has_with_trial(:searchable_associations) end