Open schlumpfit opened 2 years ago
Hello will this PR be merged?
While waiting for this to merge and release, one can meanwhile set the ldap_config to a proc in the Devise initializer:
Devise.setup do |config|
config.ldap_config = Proc.new do
YAML.load(ERB.new(File.read("#{Rails.root}/config/ldap.yml")).result, aliases: true)[Rails.env]
end
end
While waiting for this to merge and release, one can meanwhile set the ldap_config to a proc in the Devise initializer:
/config/initializers/devise.rb
Devise.setup do |config| config.ldap_config = Proc.new do YAML.load(ERB.new(File.read("#{Rails.root}/config/ldap.yml")).result, aliases: true)[Rails.env] end end
See:
Use the similar method, here's my ldap_config setting: config.ldap_config = Proc.new() {YAML.unsafe_load(ERB.new(File.read("#{Rails.root}/config/ldap.yml")).result)[Rails.env]}
@schlumpfit
Hello, could you merge this PR?
@Sinhyeok, I am not sure if I miss something, but it looks like I have no permission to merge and the repo seems unmaintained to me.
Sorry for the close and reopen, it was a mistake from my mobile.
aliases: true
is provided as an argument