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 +4 -4
- data/app/helpers/qbrick/cms/pages_helper.rb +1 -1
- data/app/models/qbrick/page.rb +2 -2
- data/lib/qbrick/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4fe8cced206db4f6e31985aade8c426d8f2e126
|
4
|
+
data.tar.gz: ac46e200677abc3e5be422703a1c0321a3616968
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
13
|
+
page.redirect? || !page.translated? || !page.persisted? || page.errors.present?
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
data/app/models/qbrick/page.rb
CHANGED
@@ -114,12 +114,12 @@ module Qbrick
|
|
114
114
|
end
|
115
115
|
|
116
116
|
def translated?
|
117
|
-
|
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("
|
122
|
+
send("title_#{locale}").present? && send("slug_#{locale}").present?
|
123
123
|
end
|
124
124
|
|
125
125
|
def translated_link_for(locale)
|
data/lib/qbrick/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|