lib/refinery/authentication/engine.rb in refinerycms-authentication-2.0.2 vs lib/refinery/authentication/engine.rb in refinerycms-authentication-2.0.3

- old
+ new

@@ -26,9 +26,13 @@ [Refinery::ApplicationController, Refinery::AdminController, ::ApplicationHelper].each do |c| c.send :include, Refinery::AuthenticatedSystem end end + config.before_configuration do + require 'refinery/authentication/devise' + end + config.after_initialize do Refinery.register_extension(Refinery::Authentication) end end end