require 'rails' module DoubleAuthEngine class Engine < Rails::Engine # Config defaults config.mount_at = '/' # Load rake tasks rake_tasks do load File.join(File.dirname(__FILE__), 'double_auth_engine/tasks/migrate_seed.rake') end # Check the gem config initializer "check config" do |app| # make sure mount_at ends with trailing slash config.mount_at += '/' unless config.mount_at.last == '/' end initializer "static assets" do |app| app.middleware.use ::ActionDispatch::Static, "#{root}/public" end end end