Skip to content

Commit

Permalink
Go back to to_prepare
Browse files Browse the repository at this point in the history
  • Loading branch information
mayorova committed Dec 19, 2024
1 parent 485c2f8 commit b8c8143
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/initializers/access_token_authentication.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

Rails.application.config.after_initialize do
Rails.application.config.to_prepare do
ActiveSupport.on_load(:active_record) do
if defined?(ActiveRecord::ConnectionAdapters::Mysql2Adapter)
ActiveRecord::ConnectionAdapters::Mysql2Adapter.class_eval do
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/money.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'three_scale/money_conversions'

Rails.application.config.after_initialize do
Rails.application.config.to_prepare do
ActionController::Base.helper(ThreeScale::MoneyHelper)

ActiveSupport.on_load(:active_record) do
Expand Down

0 comments on commit b8c8143

Please sign in to comment.