lib/avo/fields/has_base_field.rb in avo-3.6.0 vs lib/avo/fields/has_base_field.rb in avo-3.6.1

- old
+ new

@@ -81,10 +81,10 @@ # Adds the view override component # has_one, has_many, has_and_belongs_to_many fields don't have edit views def component_for_view(view = Avo::ViewInquirer.new("index")) view = Avo::ViewInquirer.new("show") if view.in? %w[new create update edit] - super view + super(view) end def authorized? method = "view_#{id}?".to_sym service = field_resource.authorization