Class: SpreeSocial::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/spree_social.rb

Class Method Summary collapse

Class Method Details

.activateObject



18
19
20
21
22
23
# File 'lib/spree_social.rb', line 18

def self.activate
  Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
    Rails.env.production? ? require(c) : load(c)
  end
  Ability.register_ability(SocialAbility)
end