enjoy_cms_catalog 0.4.0.1 → 0.4.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69bbede3b82b545b7f663831b343053fdd54f4f0
4
- data.tar.gz: 77a893e100457ae28c0e1ade2e04ac59d4a5914b
3
+ metadata.gz: f39e754f172af61495b754ca27e923ffbb8fec77
4
+ data.tar.gz: df785e260cdd91148e46cecc20a23a70f1327aeb
5
5
  SHA512:
6
- metadata.gz: 8ba084b92faba5313b19e2867479df8cfb57c44df4cc66faa8ca6942a1d8715eead963ed23510696aabbbba32524d48e1fa8c8a29ecb6b72cd9ee8f4357d0fdc
7
- data.tar.gz: 53902f9b6ca970c23fb62d3ea3d99207b13d9d20ad864f5f88248c7aeceeae6d0d1deedce8b3cabc82b1f1b719d277f4d6d3fa9481242ff3810d82fb76e5431d
6
+ metadata.gz: cb2083378475bc2787824d240f668c6a8867d76249083e2f5079870147795408ceac0bc47c939b0d80fe838ab3ed006fbffbed9a9ef4966356cab0cba838c2da
7
+ data.tar.gz: ebc368a2edae3cb85f4c2f66fb6b3a795fbd680e92de3288560cb0bc6201546eeac35694ce97da904f6f037b46992efea66ab348c50955cbc321047fa18508e9
@@ -4,8 +4,8 @@ module Enjoy::Catalog
4
4
  extend ActiveSupport::Concern
5
5
 
6
6
  included do
7
- if Enjoy::Catalog.config.breadcrumbs_on_rails_support and insert_breadcrumbs
8
- add_breadcrumb I18n.t('enjoy.breadcrumbs.catalog'), :enjoy_catalog_path
7
+ if Enjoy::Catalog.config.breadcrumbs_on_rails_support
8
+ add_breadcrumb I18n.t('enjoy.breadcrumbs.catalog'), :enjoy_catalog_path if insert_breadcrumbs
9
9
  end
10
10
  end
11
11
 
@@ -26,8 +26,8 @@ module Enjoy::Catalog
26
26
  @children = @category.children.enabled.sorted.all.to_a
27
27
  @items = @category.items.enabled.sorted.all.to_a
28
28
 
29
- if Enjoy::Catalog.config.breadcrumbs_on_rails_support and insert_breadcrumbs
30
- add_breadcrumb @category.name, url_for(@category)
29
+ if Enjoy::Catalog.config.breadcrumbs_on_rails_support
30
+ add_breadcrumb @category.name, url_for(@category) if insert_breadcrumbs
31
31
  end
32
32
 
33
33
 
@@ -4,8 +4,8 @@ module Enjoy::Catalog
4
4
  extend ActiveSupport::Concern
5
5
 
6
6
  included do
7
- if Enjoy::Catalog.config.breadcrumbs_on_rails_support and insert_breadcrumbs
8
- add_breadcrumb I18n.t('enjoy.breadcrumbs.items'), :enjoy_items_path
7
+ if Enjoy::Catalog.config.breadcrumbs_on_rails_support
8
+ add_breadcrumb I18n.t('enjoy.breadcrumbs.items'), :enjoy_items_path if insert_breadcrumbs
9
9
  end
10
10
  end
11
11
 
@@ -25,8 +25,8 @@ module Enjoy::Catalog
25
25
  return true
26
26
  end
27
27
 
28
- if Enjoy::Catalog.config.breadcrumbs_on_rails_support and insert_breadcrumbs
29
- add_breadcrumb @item.name, url_for(@item)
28
+ if Enjoy::Catalog.config.breadcrumbs_on_rails_support
29
+ add_breadcrumb @item.name, url_for(@item) if insert_breadcrumbs
30
30
  end
31
31
  end
32
32
 
@@ -45,10 +45,6 @@ module Enjoy::Catalog
45
45
  end
46
46
  end
47
47
 
48
- def insert_breadcrumbs
49
- true
50
- end
51
-
52
48
  end
53
49
  end
54
50
  end
@@ -1,5 +1,5 @@
1
1
  module Enjoy
2
2
  module Catalog
3
- VERSION = "0.4.0.1"
3
+ VERSION = "0.4.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enjoy_cms_catalog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.1
4
+ version: 0.4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kiseliev