Skip to content

Commit

Permalink
Change loading of lib path for rails 5 and reorder constants for easi…
Browse files Browse the repository at this point in the history
…er comparison with table
  • Loading branch information
jgreben committed Sep 13, 2019
1 parent 2d6ca8b commit c4846aa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 11 additions & 11 deletions lib/constants.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c4846aa

Please sign in to comment.