Skip to content

Commit

Permalink
Rails config - tidy variables
Browse files Browse the repository at this point in the history
  • Loading branch information
cycomachead authored Feb 13, 2024
1 parent 7863936 commit c643872
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
# config.action_view.annotate_rendered_view_with_filenames = true

# Provide a default host for URLs
Rails.application.routes.default_url_options[:host] = ENV.fetch('OSEM_HOSTNAME', 'localhost:3000')
config.routes.default_url_options[:host] = ENV.fetch('OSEM_HOSTNAME', 'localhost:3000')
config.action_controller.default_url_options = Rails.application.routes.default_url_options
config.action_mailer.default_url_options = Rails.application.routes.default_url_options

Expand Down
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
end

# Provide a default host for URLs
Rails.application.routes.default_url_options[:host] = ENV.fetch('OSEM_HOSTNAME', 'localhost:3000')
config.routes.default_url_options[:host] = ENV.fetch('OSEM_HOSTNAME', 'localhost:3000')
config.action_controller.default_url_options = Rails.application.routes.default_url_options
config.action_mailer.default_url_options = Rails.application.routes.default_url_options

Expand Down
2 changes: 1 addition & 1 deletion config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
config.active_support.disallowed_deprecation_warnings = []

# Provide a default host for URLs
Rails.application.routes.default_url_options[:host] = 'localhost:3000'
config.routes.default_url_options[:host] = 'localhost:3000'
config.action_controller.default_url_options = Rails.application.routes.default_url_options
config.action_mailer.default_url_options = Rails.application.routes.default_url_options

Expand Down

0 comments on commit c643872

Please sign in to comment.