Class: CurationConcern::BaseController
Instance Attribute Summary collapse
Instance Method Summary
collapse
#show_action_bar?, #show_site_search?, #sufia, with_themed_layout
Instance Attribute Details
#curation_concern ⇒ Object
Returns the value of attribute curation_concern.
38
39
40
|
# File 'app/controllers/curation_concern/base_controller.rb', line 38
def curation_concern
@curation_concern
end
|
Instance Method Details
#authorize_curation_concern! ⇒ Object
28
29
30
|
# File 'app/controllers/curation_concern/base_controller.rb', line 28
def authorize_curation_concern!
authorize!(action_name_for_authorization, curation_concern) || true
end
|
#contributor_agreement ⇒ Object
41
42
43
|
# File 'app/controllers/curation_concern/base_controller.rb', line 41
def contributor_agreement
@contributor_agreement ||= ContributorAgreement.new(curation_concern, current_user, params)
end
|
46
47
48
49
|
# File 'app/controllers/curation_concern/base_controller.rb', line 46
def save_and_add_related_files_submit_value(override_name = action_name)
verb_name = ['create', 'new'].include?(override_name) ? 'Create' : 'Update'
"#{verb_name} and Add Related Files..."
end
|