Class: SpreeEasyContact::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- SpreeEasyContact::Engine
- Defined in:
- lib/spree_easy_contact.rb
Class Method Summary collapse
Class Method Details
.activate ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/spree_easy_contact.rb', line 10 def self.activate Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c| Rails.env.production? ? require(c) : load(c) end Recaptcha.configure do |config| config.public_key = Spree::Config[:recaptcha_public_key] config.private_key = Spree::Config[:recaptcha_private_key] end end |