Skip to content

Commit

Permalink
Fix load paths - this works for both Application and Engine mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
steveyken committed Feb 23, 2024
1 parent 48a39a8 commit 9ed211c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/initializers/action_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# ActionMailer is setup in test mode later on
#
unless Rails.env.test?
require './app/models/setting'
require 'setting'

smtp_settings = Setting.smtp || {}

Expand Down
2 changes: 1 addition & 1 deletion config/initializers/custom_field_ransack_translations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
# Load field names for custom fields, for Ransack search
require './app/models/setting'
require 'setting'
if Setting.database_and_table_exists?
Rails.application.config.after_initialize do
I18n.backend.load_translations
Expand Down

0 comments on commit 9ed211c

Please sign in to comment.