diff --git a/config/application.rb b/config/application.rb index 8b0a5506..342e5337 100644 --- a/config/application.rb +++ b/config/application.rb @@ -31,7 +31,7 @@ class Application < Rails::Application # Do not swallow errors in after_commit/after_rollback callbacks. # config.active_record.raise_in_transactional_callbacks = true - config.autoload_paths += %W(#{config.root}/lib) + config.eager_load_paths << Rails.root.join('lib') config.sass.load_paths << File.expand_path('../../vendor/assets/stylesheets/') config.active_record.default_timezone = :local config.email_pattern = /(\A([\w\.%\+\-]+)@([\w\-]+\.)([\w]{2,}\s*)([;,\s]+([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,}))*\z)/i diff --git a/lib/constants.rb b/lib/constants.rb index 4a12f70e..3c11e844 100644 --- a/lib/constants.rb +++ b/lib/constants.rb @@ -1,24 +1,24 @@ module Constants AUTHORIZED_USER_APPS = { - 'accession_number' => 'Accession number', - 'db_access_ids' => 'Database access', - 'digital_bookplates' => 'Digital bookplates', + 'unicorn_updates' => 'Symphony batch updates', 'direct_upload' => 'Direct uploads', - 'email_stats' => 'Email stats', - 'file_upload' => 'File uploads', - 'mgt_rpts' => 'Management reports', - 'ora_admin' => 'Oracle administration', - 'priceforbills' => 'Price for bills', + 'unicorn_circ_batch' => 'Symphony circulation batches', 'priv_approval' => 'Privileges approvals', + 'email_stats' => 'Email stats', 'priv_support' => 'Privileges support', + 'db_access_ids' => 'Database access', + 'priceforbills' => 'Price for bills', 'reset_recall_counter' => 'Reset recall counter', + 'mgt_rpts' => 'Management reports', + 'ora_admin' => 'Oracle administration', 'sal3_batch_req' => 'SAL3 batch requests', + 'file_upload' => 'File uploads', 'sal3_breq_edit' => 'Edit SAL3 batch requests', - 'unicorn_updates' => 'Symphony batch updates', - 'unicorn_circ_batch' => 'Symphony circulation batches', 'userload_rerun' => 'Userload reruns', - 'edi_inv_view' => 'View EDI Invoices', + 'accession_number' => 'Accession number', + 'digital_bookplates' => 'Digital bookplates', 'edi_inv_manage' => 'Manage EDI Invoices', + 'edi_inv_view' => 'View EDI Invoices', 'package_manage' => 'Manage ELoader Packages' }.freeze end