Sha256: a99f95673a86351ffc14c75d14cbf24b5a3428a7c3aeafea45938e3f18dd1e28
Contents?: true
Size: 756 Bytes
Versions: 6
Compression:
Stored size: 756 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! } # Loads then Ninsho Helpers into the Ninsho Controllers # for the ones whicn inherits from have access ActiveSupport.on_load(:action_controller) do include Ninsho::Controllers::Helpers end # Setup for omniauth strategies when initializer is run 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
6 entries across 6 versions & 1 rubygems