spree_zone_pricing 0.1.80 → 0.1.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/spree_zone_pricing.rb +12 -0
- metadata +2 -2
data/lib/spree_zone_pricing.rb
CHANGED
@@ -9,6 +9,18 @@ module SpreeZonePricing
|
|
9
9
|
|
10
10
|
def self.activate
|
11
11
|
|
12
|
+
config.to_prepare do
|
13
|
+
# Load application's model / class decorators
|
14
|
+
Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
|
15
|
+
Rails.configuration.cache_classes ? require(c) : load(c)
|
16
|
+
end
|
17
|
+
|
18
|
+
# Load application's view overrides
|
19
|
+
Dir.glob(File.join(File.dirname(__FILE__), "../app/overrides/*.rb")) do |c|
|
20
|
+
Rails.configuration.cache_classes ? require(c) : load(c)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
12
24
|
=begin
|
13
25
|
|
14
26
|
# Add helper to retrieve the users country
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_zone_pricing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.81
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-24 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description: Zone Pricing is an extension to Spree that uses the predefined zones
|
15
15
|
to determine the price for a particular product variant. For example, this allows
|