app/controllers/avo/relations_controller.rb in avo-1.20.1 vs app/controllers/avo/relations_controller.rb in avo-1.20.2.pre.1

- old
+ new

@@ -2,14 +2,14 @@ module Avo class RelationsController < BaseController before_action :set_model, only: [:show, :index, :new, :create, :destroy] before_action :set_related_resource_name - before_action :set_related_resource - before_action :hydrate_related_resource + before_action :set_related_resource, only: [:show, :index, :new, :create, :destroy] + before_action :hydrate_related_resource, only: [:show, :index, :new, :create, :destroy] before_action :set_related_model, only: [:show] - before_action :set_attachment_class - before_action :set_attachment_resource + before_action :set_attachment_class, only: [:show, :index, :new, :create, :destroy] + before_action :set_attachment_resource, only: [:show, :index, :new, :create, :destroy] before_action :set_attachment_model, only: [:create, :destroy] before_action :set_reflection, only: [:index, :show] def index @parent_resource = @resource.dup