qbrick 2.6.2 → 2.6.3

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: b4f3ceb72b5a03c06f602281f41bcc750f8d49ce
4
- data.tar.gz: 4618b777f6e1a6151b95a1e17d6894aa158ac42c
3
+ metadata.gz: c4fe8cced206db4f6e31985aade8c426d8f2e126
4
+ data.tar.gz: ac46e200677abc3e5be422703a1c0321a3616968
5
5
  SHA512:
6
- metadata.gz: c779195400c460314f4d37a8a6796637e043427dd6643c9d4aea53be22fa0c35914926e8177e10093cab10e9b28f3924e4746ce8147790196d04c3d51aad0383
7
- data.tar.gz: bd0e378f688977977cb1dde7512f59ad11c6111a238fd56c1767343692be81f07d2fb6d7fb9332b9352b3321b77a948c38c4cafbbbf9aed4d8cd27a01dc0ad31
6
+ metadata.gz: 7396644e1b2d342aeca7df98e3ad2c37ce6f7c13d360670662b1e33bb2b417dae203839425d8b7d6df7d451ede6b4dc2a4fdc88164b60686642b99538b62d3f3
7
+ data.tar.gz: 83f6b6386233c67e05982b6d8f290ce3c85d249b97f68d76559e58d8a09bfaeeb2e3eb8aba4c502af510df83a807cedc4db71b50cb0b94d110767f8e191e7848
@@ -10,7 +10,7 @@ module Qbrick
10
10
  end
11
11
 
12
12
  def hide_content_tab?(page)
13
- page.page_type == Qbrick::PageType::REDIRECT || !page.translated? || !page.persisted? || page.errors.present?
13
+ page.redirect? || !page.translated? || !page.persisted? || page.errors.present?
14
14
  end
15
15
  end
16
16
  end
@@ -114,12 +114,12 @@ module Qbrick
114
114
  end
115
115
 
116
116
  def translated?
117
- path.present? && title.present? && slug.present?
117
+ title.present? && slug.present?
118
118
  end
119
119
 
120
120
  def translated_to?(raw_locale)
121
121
  locale = raw_locale.to_s.underscore
122
- send("path_#{locale}").present? && send("title_#{locale}").present? && send("slug_#{locale}").present?
122
+ send("title_#{locale}").present? && send("slug_#{locale}").present?
123
123
  end
124
124
 
125
125
  def translated_link_for(locale)
@@ -1,3 +1,3 @@
1
1
  module Qbrick
2
- VERSION = '2.6.2'
2
+ VERSION = '2.6.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qbrick
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.2
4
+ version: 2.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Immanuel Häussermann
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-06-10 00:00:00.000000000 Z
15
+ date: 2015-06-16 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rspec-rails
@@ -886,7 +886,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
886
886
  version: '0'
887
887
  requirements: []
888
888
  rubyforge_project: qbrick
889
- rubygems_version: 2.4.5
889
+ rubygems_version: 2.2.2
890
890
  signing_key:
891
891
  specification_version: 4
892
892
  summary: A tool that helps you to manage your content within your app.