Skip to content

Commit

Permalink
Fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gbp committed Jan 8, 2025
1 parent 74d656f commit 10a44e9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion app/models/mail_server_log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
class MailServerLog < ApplicationRecord
# `serialize` needs to be called before all other ActiveRecord code.
# See http://stackoverflow.com/a/15610692/387558
serialize :delivery_status, DeliveryStatusSerializer
serialize :delivery_status, coder: DeliveryStatusSerializer

belongs_to :info_request,
inverse_of: :mail_server_logs,
Expand Down
4 changes: 0 additions & 4 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ class Application < Rails::Application
config.load_defaults 7.0
config.autoloader = :zeitwerk

# Enable new framework defaults configurations for later Rails versions
# preventing deprecation warnings
config.active_storage.replace_on_assign_to_many = true # 7.1

# Disable new framework default has_many_inversing breaks some specs due to
# an apparent regression in Rails
config.active_record.has_many_inversing = false # 6.1
Expand Down
12 changes: 12 additions & 0 deletions config/cable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
development:
adapter: redis
url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
channel_prefix: alaveteli_development

test:
adapter: test

production:
adapter: redis
url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
channel_prefix: alaveteli_production
2 changes: 2 additions & 0 deletions config/initializers/secret_token.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
secret_key_base = AlaveteliConfiguration.secret_key_base
Rails.application.credentials.secret_key_base = secret_key_base
8 changes: 0 additions & 8 deletions config/secrets.yml

This file was deleted.

0 comments on commit 10a44e9

Please sign in to comment.