Sha256: a5a6f6387eac69bfabff3aa4b143304e7a71ba390169365ba54e6c4483990705
Contents?: true
Size: 889 Bytes
Versions: 3
Compression:
Stored size: 889 Bytes
Contents
module Auther class Engine < ::Rails::Engine isolate_namespace Auther # Set defaults. Can be overwritten in app config. config.auther_settings = {} # Add jQuery assets. jquery_gem_path = Gem.loaded_specs["jquery-rails"].full_gem_path config.assets.paths << "#{jquery_gem_path}/vendor/assets/javascripts" # Add Zurb Foundation assets. foundation_gem_path = Gem.loaded_specs["foundation-rails"].full_gem_path config.assets.paths << "#{foundation_gem_path}/vendor/assets/stylesheets" config.assets.paths << "#{foundation_gem_path}/vendor/assets/javascripts" initializer "auther.initialize" do |app| # 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
auther-1.1.0 | lib/auther/engine.rb |
auther-1.0.0 | lib/auther/engine.rb |
auther-0.3.0 | lib/auther/engine.rb |