lib/refinerycms-authentication.rb in refinerycms-authentication-0.9.9.7 vs lib/refinerycms-authentication.rb in refinerycms-authentication-0.9.9.8

- old
+ new

@@ -10,9 +10,14 @@ module Refinery module Authentication class Engine < ::Rails::Engine + + initializer "serve static assets" do |app| + app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public" + end + config.autoload_paths += %W( #{config.root}/lib ) config.after_initialize do ::Refinery::Plugin.register do |plugin| plugin.name = "refinery_users"