spree_zoned 0.5.10 → 0.5.11
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,26 +1,22 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
inorout(@product.method :backtocountry)
|
11
|
-
end
|
12
|
-
|
13
|
-
protected
|
1
|
+
Spree::Admin::ProductsController.class_eval do
|
2
|
+
|
3
|
+
def deletefc
|
4
|
+
inorout(@product.method :delfrom)
|
5
|
+
end
|
6
|
+
|
7
|
+
def backtocountry
|
8
|
+
inorout(@product.method :backtocountry)
|
9
|
+
end
|
14
10
|
|
15
|
-
|
16
|
-
country = session[:zoned] && session[:zoned][:prd_country]
|
17
|
-
m.call(country.to_i) if country
|
18
|
-
respond_to do |format|
|
19
|
-
format.html { redirect_to collection_url }
|
20
|
-
format.js { render nothing: true }
|
21
|
-
end
|
22
|
-
end
|
11
|
+
protected
|
23
12
|
|
13
|
+
def inorout(m)
|
14
|
+
country = session[:zoned] && session[:zoned][:prd_country]
|
15
|
+
m.call(country.to_i) if country
|
16
|
+
respond_to do |format|
|
17
|
+
format.html { redirect_to collection_url }
|
18
|
+
format.js { render nothing: true }
|
24
19
|
end
|
25
20
|
end
|
21
|
+
|
26
22
|
end
|
data/lib/spree_zoned/engine.rb
CHANGED
data/spree_zoned.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.platform = Gem::Platform::RUBY
|
4
4
|
s.name = 'spree_zoned'
|
5
|
-
s.version = '0.5.
|
5
|
+
s.version = '0.5.11'
|
6
6
|
s.summary = 'A Spree extension to make your store zoned'
|
7
7
|
s.description = "Everything you need for a zoned Spree store: zoned pricing, zoned products, zoned product ordering, zoned locales, ...\nProbalbly essential to you if you operate outside of the US."
|
8
8
|
s.required_ruby_version = '>= 1.9.2'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_zoned
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.11
|
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-06-
|
12
|
+
date: 2012-06-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spree_core
|