Module: Sufia::WorksControllerBehavior::ClassMethods

Defined in:
app/controllers/concerns/sufia/works_controller_behavior.rb

Instance Method Summary collapse

Instance Method Details

#curation_concern_type=(curation_concern_type) ⇒ Object

We don’t want the breadcrumb action to occur until after the concern has been loaded and authorized



16
17
18
19
# File 'app/controllers/concerns/sufia/works_controller_behavior.rb', line 16

def curation_concern_type=(curation_concern_type)
  super
  before_action :build_breadcrumbs, only: [:edit, :show]
end