Initial commit
This commit is contained in:
17
config/initializers/barong_config.rb
Normal file
17
config/initializers/barong_config.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
# FIXME BarongConfig should be a feature of Barong::App
|
||||
class BarongConfig
|
||||
class << self
|
||||
|
||||
def list
|
||||
@hash ||= read_from_yaml
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def read_from_yaml
|
||||
conf = YAML.load_file(Barong::App.config.config)
|
||||
conf['activation_requirements'] = {'email' => 'verified'} unless conf['activation_requirements']
|
||||
conf
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user