Sha256: 7de98bd7296b278341e892e68aa70f82fd37203f7506ab8907db8031141c2472
Contents?: true
Size: 1.01 KB
Versions: 3
Compression:
Stored size: 1.01 KB
Contents
module CurationConcern class BaseController < ApplicationController layout 'curate_nd' include Sufia::Noid # for normalize_identifier method before_filter :authenticate_user!, :except => [:show] before_filter :agreed_to_terms_of_service! prepend_before_filter :normalize_identifier, except: [:index, :new, :create] before_filter :curation_concern, except: [:index] load_and_authorize_resource :curation_concern, except: [:index, :new, :create], class: "ActiveFedora::Base" attr_reader :curation_concern helper_method :curation_concern def contributor_agreement @contributor_agreement ||= ContributorAgreement.new(curation_concern, current_user, params) end helper_method :contributor_agreement 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 helper_method :save_and_add_related_files_submit_value end end
Version data entries
3 entries across 3 versions & 1 rubygems