spree_zone_pricing 0.1.82 → 0.1.83
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.
@@ -0,0 +1,9 @@
|
|
1
|
+
Dir.glob(File.join(File.dirname(__FILE__), "../../app/**/*_decorator*.rb")) do |c|
|
2
|
+
Rails.configuration.cache_classes ? require(c) : load(c)
|
3
|
+
end
|
4
|
+
Dir.glob(File.join(File.dirname(__FILE__), "../../app/**/**/*_decorator*.rb")) do |c|
|
5
|
+
Rails.configuration.cache_classes ? require(c) : load(c)
|
6
|
+
end
|
7
|
+
Dir.glob(File.join(File.dirname(__FILE__), "../../app/**/**/**/*_decorator*.rb")) do |c|
|
8
|
+
Rails.configuration.cache_classes ? require(c) : load(c)
|
9
|
+
end
|
data/lib/spree_zone_pricing.rb
CHANGED
@@ -7,6 +7,7 @@ module SpreeZonePricing
|
|
7
7
|
|
8
8
|
config.autoload_paths += %W(#{config.root}/lib)
|
9
9
|
|
10
|
+
=begin
|
10
11
|
config.to_prepare do
|
11
12
|
# Load application's model / class decorators
|
12
13
|
Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
|
@@ -18,11 +19,11 @@ module SpreeZonePricing
|
|
18
19
|
Rails.configuration.cache_classes ? require(c) : load(c)
|
19
20
|
end
|
20
21
|
end
|
22
|
+
=end
|
21
23
|
|
22
24
|
def self.activate
|
23
25
|
|
24
26
|
=begin
|
25
|
-
|
26
27
|
# Add helper to retrieve the users country
|
27
28
|
ApplicationHelper.send(:include, Spree::ZonePricing::GetCountry)
|
28
29
|
# Add helper to retrieve the users country, used by a number of controllers
|
@@ -48,7 +49,6 @@ module SpreeZonePricing
|
|
48
49
|
# Add code to check zone prices after address is saved during checkout, if ship
|
49
50
|
# country not the same change prices in order
|
50
51
|
CheckoutsController.send(:include, Spree::ZonePricing::CheckoutsController)
|
51
|
-
|
52
52
|
=end
|
53
53
|
|
54
54
|
end
|
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.83
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -38,6 +38,7 @@ files:
|
|
38
38
|
- app/overrides/spree/shared/_nav_bar/spree_zone_pricing.html.erb.deface
|
39
39
|
- config/routes.rb
|
40
40
|
- config/locales/en_spree.yml
|
41
|
+
- config/initializers/local_decorators.rb
|
41
42
|
- db/seeds.rb
|
42
43
|
- lib/spree_zone_pricing.rb
|
43
44
|
- lib/spree_zone_pricing_hooks.rb
|