Sha256: ddb41dbc9e12d342a55c11458f0ddbe7d30efb615a71d3ccb66d22d98828f154
Contents?: true
Size: 585 Bytes
Versions: 1
Compression:
Stored size: 585 Bytes
Contents
require 'ninsho/rails/routes' module Ninsho class Engine < ::Rails::Engine config.ninsho = Ninsho # Force routes to be loaded if we are doing any eager load. config.before_eager_load { |app| app.reload_routes! } ActiveSupport.on_load(:action_controller) do include Ninsho::Controllers::Helpers end initializer "ninsho.omniauth" do |app| Ninsho.omniauth_configs.each do |provider, config| app.middleware.use config.strategy_class, *config.args do |strategy| config.strategy = strategy end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ninsho-0.0.1 | lib/ninsho/rails.rb |