Sha256: 02a2befd9e926f4e8f1f3990977f2f0a6ad4f564ebd37b295ca7466148f91c40
Contents?: true
Size: 934 Bytes
Versions: 1
Compression:
Stored size: 934 Bytes
Contents
require 'rails/engine' module GoogleSignIn class Engine < ::Rails::Engine isolate_namespace GoogleSignIn config.google_sign_in = ActiveSupport::OrderedOptions.new initializer 'google_sign_in.config' do |app| config.after_initialize do GoogleSignIn.client_id = config.google_sign_in.client_id || app.credentials.dig(:google_sign_in, :client_id) GoogleSignIn.client_secret = config.google_sign_in.client_secret || app.credentials.dig(:google_sign_in, :client_secret) end end config.to_prepare do ActionController::Base.helper GoogleSignIn::Engine.helpers end initializer 'google_sign_in.mount' do |app| app.routes.prepend do mount GoogleSignIn::Engine, at: app.config.google_sign_in.root || 'google_sign_in' end end initializer 'google_sign_in.parameter_filters' do |app| app.config.filter_parameters << :code end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
google_sign_in-1.2.1 | lib/google_sign_in/engine.rb |