app/components/avo/fields/show_component.rb in avo-3.1.3 vs app/components/avo/fields/show_component.rb in avo-3.1.4
- old
+ new
@@ -4,21 +4,23 @@
include Avo::ResourcesHelper
attr_reader :compact
attr_reader :field
attr_reader :index
+ attr_reader :kwargs
attr_reader :resource
attr_reader :stacked
attr_reader :short
attr_reader :view
- def initialize(field: nil, resource: nil, index: 0, form: nil, compact: false, short: false, stacked: nil)
+ def initialize(field: nil, resource: nil, index: 0, form: nil, compact: false, short: false, stacked: nil, **kwargs)
@compact = compact
@field = field
@index = index
@resource = resource
@stacked = stacked
@short = short
+ @kwargs = kwargs
@view = Avo::ViewInquirer.new("show")
end
def wrapper_data
{