Merge branch 'master' into ssl-opt
This commit is contained in:
commit
ee6040ffd6
7 changed files with 68 additions and 9 deletions
10
config/initializers/feature.rb
Normal file
10
config/initializers/feature.rb
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
require 'feature'
|
||||
|
||||
repo = Feature::Repository::SimpleRepository.new
|
||||
|
||||
# configure features here
|
||||
unless(ENV['RECAPTCHA_SITE_KEY'].blank? || ENV['RECAPTCHA_SECRET_KEY'].blank?)
|
||||
repo.add_active_feature :recaptcha
|
||||
end
|
||||
|
||||
Feature.set_repository repo
|
||||
Loading…
Add table
Add a link
Reference in a new issue