Sha256: c6aaf89e6368e0d1e839ba0dd590d7d1ab71127f3ab8628ad18d1132bf5d6ccb
Contents?: true
Size: 825 Bytes
Versions: 4
Compression:
Stored size: 825 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cadenero-0.0.2.b4 | lib/cadenero/engine.rb |
cadenero-0.0.2.b3 | lib/cadenero/engine.rb |
cadenero-0.0.2.b2 | lib/cadenero/engine.rb |
cadenero-0.0.2.b1 | lib/cadenero/engine.rb |