spree_zoned 0.5.19 → 0.5.20

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,8 +4,8 @@ module Spree
4
4
 
5
5
  def link_to_deletefc(resource, options = {}, html_options={})
6
6
  options.assert_valid_keys(:url, :caption, :title, :dataType, :success, :error, :name)
7
-
8
7
  country = session[:zoned] && session[:zoned][:prd_country]
8
+ return if !country || country == 0
9
9
  if country && !resource.incountry?(country.to_i)
10
10
  options.reverse_merge! :url => object_url(resource) + '/zonedbtc' unless options.key? :url
11
11
  options.reverse_merge! :caption => t(:are_you_sure)
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.19'
5
+ s.version = '0.5.20'
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.19
4
+ version: 0.5.20
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: