Sha256: 499b6dcfea566d550b8b66429b879922637bf7fa5885bf513ecda5beb53cba69
Contents?: true
Size: 1.3 KB
Versions: 4
Compression:
Stored size: 1.3 KB
Contents
Rails.application.configure do config = self.config config.eager_load = true config.paths.path = File.expand_path '../../', __FILE__ config.paths.add 'app/strategies', eager_load: true config.paths.add 'app/forms', eager_load: true config.paths.add 'lib/tasks', with: 'tasks', glob: '**/*.rake' config.paths.add "config/locales", with: "locales", glob: "**/*.{rb,yml}" config.paths.add 'Gemfile', with: 'config/Gemfile' config.filter_parameters += [:password, :database] config.session_store :cookie_store, key: '_ecrire_com_session' config.assets.precompile = [ lambda do |filename, path| path =~ /assets/ && !%w(.js .css).include?(File.extname(filename)) end, /^(admin|application|base)\.(css|js)$/ ] Warden::Manager.serialize_into_session do |user| user.id end Warden::Manager.serialize_from_session do |id| User.find_by_id(id) end config.to_prepare do Warden::Strategies.add :password, PasswordStrategy end config.middleware.use Warden::Manager do |manager| manager.default_strategies :password manager.failure_app = SessionsController.action(:failed) end ActiveSupport.on_load(:action_controller) do wrap_parameters format: [:json] if respond_to?(:wrap_parameters) end require "ecrire/config/environment/#{Rails.env}" end
Version data entries
4 entries across 4 versions & 1 rubygems