Sha256: ac02ca7b0f3427ce4ddbe395cb3763627941fd22ee776aa82c9085aab6b91075
Contents?: true
Size: 762 Bytes
Versions: 1
Compression:
Stored size: 762 Bytes
Contents
require 'warden' module Cadenero # Defines Cadenero as a Rails Engine using the passworf strategy as default for Warden class Engine < ::Rails::Engine isolate_namespace Cadenero config.middleware.use Warden::Manager do |manager| manager.default_strategies :password end config.generators do |g| g.test_framework :rspec g.integration_tool :rspec end config.to_prepare do root = Cadenero::Engine.root extenders_path = root + "app/extenders/**/*.rb" Dir.glob(extenders_path) do |file| Rails.configuration.cache_classes ? require(file) : load(file) end end config.middleware.use ActionDispatch::Cookies config.middleware.use ActionDispatch::Session::CookieStore end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cadenero-0.0.2.b5 | lib/cadenero/engine.rb |