Class: SpreeSocial::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- SpreeSocial::Engine
- Defined in:
- lib/spree_social.rb
Class Method Summary collapse
Class Method Details
.activate ⇒ Object
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 |