Sha256: 912b070c0525283286b2d0ce3e1d593431e76309e16befc65adcab5b8e91a461

Contents?: true

Size: 1.07 KB

Versions: 11

Compression:

Stored size: 1.07 KB

Contents

# Use this hook to configure devise mailer, warden hooks and so forth.
# Many of these configuration options can be set straight in your model.
Devise.setup do |config|

  if Rails.env.development? || Rails.env.test?
    config.secret_key = '04671846f794e5df0e032abb7d3d3876016f1cf0a1ced726429b2807c798de67f08035cc45e953eca23e08661a7f8030f4bcaec91ef184d89f4c721b5925d36b'
  else
    config.secret_key = ENV['DEVISE_SECRET_KEY'] || ENV["SECRET_KEY_BASE"]
  end

  # ==> Mountable engine configurations
  # When using Devise inside an engine, let's call it `MyEngine`, and this engine
  # is mountable, there are some extra configurations to be taken into account.
  # The following options are available, assuming the engine is mounted as:
  #
  #     mount MyEngine, at: '/my_engine'
  #
  # The router that invoked `devise_for`, in the example above, would be:
  config.router_name = :faalis
  #
  # When using omniauth, Devise cannot automatically set Omniauth path,
  # so you need to do it manually. For the users scope, it would be:
  # config.omniauth_path_prefix = '/my_engine/users/auth'
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
faalis-2.2.0.pre.rc1 config/initializers/devise.rb
faalis-2.2.1 config/initializers/devise.rb
faalis-2.2.0 config/initializers/devise.rb
faalis-2.1.1 config/initializers/devise.rb
faalis-2.1.0 config/initializers/devise.rb
faalis-2.0.8 config/initializers/devise.rb
faalis-2.0.7 config/initializers/devise.rb
faalis-2.0.5 config/initializers/devise.rb
faalis-2.0.4 config/initializers/devise.rb
faalis-2.0.3 config/initializers/devise.rb
faalis-2.0.1 config/initializers/devise.rb