diff options
author | Brendan Deere <brendan.g.deere@gmail.com> | 2016-08-24 17:00:35 -0700 |
---|---|---|
committer | Brendan Deere <brendan.g.deere@gmail.com> | 2016-08-24 17:00:35 -0700 |
commit | a8a92654ba21b22bd3f8d07c3ae25e3604e7942a (patch) | |
tree | 2807d38cbf1e54068614aac191eb0b3ea38c09e8 /lib/solidus_subscriptions |
init
Diffstat (limited to 'lib/solidus_subscriptions')
-rw-r--r-- | lib/solidus_subscriptions/engine.rb | 20 | ||||
-rw-r--r-- | lib/solidus_subscriptions/factories.rb | 6 | ||||
-rw-r--r-- | lib/solidus_subscriptions/version.rb | 3 |
3 files changed, 29 insertions, 0 deletions
diff --git a/lib/solidus_subscriptions/engine.rb b/lib/solidus_subscriptions/engine.rb new file mode 100644 index 0000000..f9569ab --- /dev/null +++ b/lib/solidus_subscriptions/engine.rb @@ -0,0 +1,20 @@ +module SolidusSubscriptions + class Engine < Rails::Engine + require 'spree/core' + isolate_namespace Spree + engine_name 'solidus_subscriptions' + + # use rspec for tests + config.generators do |g| + g.test_framework :rspec + end + + def self.activate + Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c| + Rails.configuration.cache_classes ? require(c) : load(c) + end + end + + config.to_prepare(&method(:activate).to_proc) + end +end diff --git a/lib/solidus_subscriptions/factories.rb b/lib/solidus_subscriptions/factories.rb new file mode 100644 index 0000000..dc19324 --- /dev/null +++ b/lib/solidus_subscriptions/factories.rb @@ -0,0 +1,6 @@ +FactoryGirl.define do + # Define your Spree extensions Factories within this file to enable applications, and other extensions to use and override them. + # + # Example adding this to your spec_helper will load these Factories for use: + # require 'solidus_subscriptions/factories' +end diff --git a/lib/solidus_subscriptions/version.rb b/lib/solidus_subscriptions/version.rb new file mode 100644 index 0000000..0b77f6d --- /dev/null +++ b/lib/solidus_subscriptions/version.rb @@ -0,0 +1,3 @@ +module SolidusSubscriptions + VERSION = '0.0.1' +end |