Module: Hyrax::PermissionsControllerBehavior
- Extended by:
- ActiveSupport::Concern
- Included in:
- PermissionsController
- Defined in:
- app/controllers/concerns/hyrax/permissions_controller_behavior.rb
Instance Method Summary collapse
- #confirm ⇒ Object
- #confirm_access ⇒ Object
- #copy ⇒ Object
- #copy_access ⇒ Object
- #curation_concern ⇒ Object
Instance Method Details
#confirm ⇒ Object
9 10 11 |
# File 'app/controllers/concerns/hyrax/permissions_controller_behavior.rb', line 9 def confirm # intentional noop to display default view end |
#confirm_access ⇒ Object
20 21 22 |
# File 'app/controllers/concerns/hyrax/permissions_controller_behavior.rb', line 20 def confirm_access # intentional noop to display default view end |
#copy ⇒ Object
13 14 15 16 17 18 |
# File 'app/controllers/concerns/hyrax/permissions_controller_behavior.rb', line 13 def copy :edit, curation_concern VisibilityCopyJob.perform_later(curation_concern) = 'Updating file permissions. This may take a few minutes. You may want to refresh your browser or return to this record later to see the updated file permissions.' redirect_to [main_app, curation_concern], notice: end |
#copy_access ⇒ Object
24 25 26 27 28 29 30 31 32 |
# File 'app/controllers/concerns/hyrax/permissions_controller_behavior.rb', line 24 def copy_access :edit, curation_concern # copy visibility VisibilityCopyJob.perform_later(curation_concern) # copy permissions InheritPermissionsJob.perform_later(curation_concern) redirect_to [main_app, curation_concern], notice: I18n.t("hyrax.upload.change_access_flash_message") end |
#curation_concern ⇒ Object
34 35 36 |
# File 'app/controllers/concerns/hyrax/permissions_controller_behavior.rb', line 34 def curation_concern @curation_concern ||= ActiveFedora::Base.find(params[:id]) end |