Sha256: a26d7d07f6f82a0b881bd0313626b507486d13f8b746cca2bce4814a72132fb0
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
module Auther class Engine < ::Rails::Engine isolate_namespace Auther # Set defaults. Can be overwritten in app config. config.auther_settings = {} initializer "auther.initialize" do |app| # Add jQuery assets. jquery_gem_path = Gem.loaded_specs["jquery-rails"].full_gem_path app.config.assets.paths << "#{jquery_gem_path}/vendor/assets/javascripts" # Add Modernizr assets. modernizr_gem_path = Gem.loaded_specs["modernizr-rails"].full_gem_path app.config.assets.paths << "#{modernizr_gem_path}/vendor/assets/javascripts" # Add Zurb Foundation assets. foundation_gem_path = Gem.loaded_specs["foundation-rails"].full_gem_path app.config.assets.paths << "#{foundation_gem_path}/vendor/assets/stylesheets" app.config.assets.paths << "#{foundation_gem_path}/vendor/assets/javascripts" # Configure log filter parameters. app.config.filter_parameters += [:login, :password] # Initialize Gatekeeper middleware. app.config.app_middleware.use Auther::Gatekeeper, app.config.auther_settings end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
auther-1.3.0 | lib/auther/engine.rb |