Skip to content

Commit

Permalink
Move userstamp setup into after_initialize hook
Browse files Browse the repository at this point in the history
Now that the userclass will be set in a config.to_prepare
block in apps we need to run this code last.
  • Loading branch information
tvdeyen committed Feb 18, 2022
1 parent 67e4033 commit fd7fa1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/alchemy/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Engine < Rails::Engine
end
end

initializer "alchemy.userstamp" do
config.after_initialize do
if Alchemy.user_class
ActiveSupport.on_load(:active_record) do
Alchemy.user_class.model_stamper
Expand Down

0 comments on commit fd7fa1b

Please sign in to comment.