enjoy_cms_catalog 0.4.0 → 0.4.0.1

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: 3164514754ffb7aa08c22494d69dbb521a9cec61
4
- data.tar.gz: a031dbb35eb87ca22f757a7e554f888c55305ddb
3
+ metadata.gz: 69bbede3b82b545b7f663831b343053fdd54f4f0
4
+ data.tar.gz: 77a893e100457ae28c0e1ade2e04ac59d4a5914b
5
5
  SHA512:
6
- metadata.gz: 1b11e03cd5f260f7b59a1f527b47090390c81b01454a98df8bcb0c707e488c87cca8df01797ee2f48bdfb8ee43d7f5d7d4c423345b6fb8c9347caeb1864f239b
7
- data.tar.gz: 49559c18f178a4e1a823a986cf45c8563d2929433fac2998782cdd3ba53be0a9f190875acf0bcd70c63e4c71d5fa8350238a9f493e86d8dcd259d302dda53b30
6
+ metadata.gz: 8ba084b92faba5313b19e2867479df8cfb57c44df4cc66faa8ca6942a1d8715eead963ed23510696aabbbba32524d48e1fa8c8a29ecb6b72cd9ee8f4357d0fdc
7
+ data.tar.gz: 53902f9b6ca970c23fb62d3ea3d99207b13d9d20ad864f5f88248c7aeceeae6d0d1deedce8b3cabc82b1f1b719d277f4d6d3fa9481242ff3810d82fb76e5431d
@@ -4,7 +4,7 @@ module Enjoy::Catalog
4
4
  extend ActiveSupport::Concern
5
5
 
6
6
  included do
7
- if Enjoy::Catalog.config.breadcrumbs_on_rails_support
7
+ if Enjoy::Catalog.config.breadcrumbs_on_rails_support and insert_breadcrumbs
8
8
  add_breadcrumb I18n.t('enjoy.breadcrumbs.catalog'), :enjoy_catalog_path
9
9
  end
10
10
  end
@@ -26,7 +26,7 @@ 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
29
+ if Enjoy::Catalog.config.breadcrumbs_on_rails_support and insert_breadcrumbs
30
30
  add_breadcrumb @category.name, url_for(@category)
31
31
  end
32
32
 
@@ -51,6 +51,10 @@ module Enjoy::Catalog
51
51
  Enjoy::Catalog::Item
52
52
  end
53
53
 
54
+ def insert_breadcrumbs
55
+ true
56
+ end
57
+
54
58
  # def index_crumbs
55
59
  # if @seo_parent_page
56
60
  # catalog_title = Settings.ns('breadcrumbs').catalog_title(default: "Каталог", label: "'Каталог' в breadcrumbs")
@@ -4,7 +4,7 @@ module Enjoy::Catalog
4
4
  extend ActiveSupport::Concern
5
5
 
6
6
  included do
7
- if Enjoy::Catalog.config.breadcrumbs_on_rails_support
7
+ if Enjoy::Catalog.config.breadcrumbs_on_rails_support and insert_breadcrumbs
8
8
  add_breadcrumb I18n.t('enjoy.breadcrumbs.items'), :enjoy_items_path
9
9
  end
10
10
  end
@@ -25,7 +25,7 @@ module Enjoy::Catalog
25
25
  return true
26
26
  end
27
27
 
28
- if Enjoy::Catalog.config.breadcrumbs_on_rails_support
28
+ if Enjoy::Catalog.config.breadcrumbs_on_rails_support and insert_breadcrumbs
29
29
  add_breadcrumb @item.name, url_for(@item)
30
30
  end
31
31
  end
@@ -38,13 +38,17 @@ module Enjoy::Catalog
38
38
  Enjoy::Catalog::Item
39
39
  end
40
40
  def page_title
41
- if @item.class.name == model.name
41
+ if @item
42
42
  @item.page_title
43
43
  else
44
44
  super
45
45
  end
46
46
  end
47
47
 
48
+ def insert_breadcrumbs
49
+ true
50
+ end
51
+
48
52
  end
49
53
  end
50
54
  end
@@ -1,5 +1,5 @@
1
1
  module Enjoy
2
2
  module Catalog
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enjoy_cms_catalog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kiseliev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-14 00:00:00.000000000 Z
11
+ date: 2016-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler