qbrick 2.6.8 → 2.6.9

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: 67f8f765f6e3c6dd0cdb8132014bfc1995853e37
4
- data.tar.gz: 076e84aea3b7ec757a33bb8e251c23af563d4b70
3
+ metadata.gz: 49695eed4e63d6e12b907b94559efad3d8915b24
4
+ data.tar.gz: 489b41c0a55c4bf8b1bac5e4f102d174df924d41
5
5
  SHA512:
6
- metadata.gz: 6e39347857944a8718b1fb4998f68e463242c4e52c79e896240e3ee8f71d1bab13d1aa23ce2eff8896869166477cfd9dde08436f0b8884eb40809187b643d03b
7
- data.tar.gz: 4c91219baac0fcffc31b148aad8d22f92fea7a9ac1be42aada653f9b64be0037af331da58bffb5e5ccff81a361ea089accab69103cd6275cfa5e4ee221e10c30
6
+ metadata.gz: 0da33eb0ee68b0d091c01b0390fde7d63b65f5007017a42ba59afb2b55cc922aa9288ea2aab2d482388b56050a2196c8407c766f718241a1d3af572fa5989dac
7
+ data.tar.gz: ec2b3838042f44cd8dfdaaaf79d4227d0e250d0ef1aa17471f7dafbdcd7cf5aefe8b6d93b82481ff0303115e415ba9f2f068cbcf1a444e3c3951dd056c877d67
@@ -15,7 +15,7 @@ module Qbrick
15
15
  default_scope { order 'position ASC' }
16
16
 
17
17
  scope :published, -> { where locale_attr(:published) => Qbrick::PublishState::PUBLISHED }
18
- scope :translated, -> { where.not locale_attr(:path) => nil }
18
+ scope :translated, -> { where.not locale_attr(:path) => [nil, ''], locale_attr(:title) => [nil, ''] }
19
19
 
20
20
  scope :content_page, -> { where page_type: Qbrick::PageType::CONTENT }
21
21
 
@@ -80,10 +80,10 @@ module Qbrick
80
80
  return true unless page_with_duplicated_paths.exists?
81
81
 
82
82
  message = 'page ids: '
83
- page_with_duplicated_paths.pluck(:id).each do |id|
84
- message << "<a href=\"#{edit_cms_page_path id}#page-metadata\" target=\"_blank\">#{id}</a> "
83
+ page_with_duplicated_paths.order(:id).pluck(:id).each do |id|
84
+ message << "<a href=\"#{edit_cms_page_path id}#page-metadata\" target=\"_blank\">#{id}</a>, "
85
85
  end
86
- message = I18n.t 'activerecord.errors.models.qbrick/page.attributes.slug.duplicated_slug', append: " (#{message.strip})"
86
+ message = I18n.t 'activerecord.errors.models.qbrick/page.attributes.slug.duplicated_slug', append: " (#{message.sub(/, $/, '')})"
87
87
  errors.add :slug, message.html_safe
88
88
  end
89
89
 
@@ -1,3 +1,3 @@
1
1
  module Qbrick
2
- VERSION = '2.6.8'
2
+ VERSION = '2.6.9'
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.8
4
+ version: 2.6.9
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-07-14 00:00:00.000000000 Z
15
+ date: 2015-07-15 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rspec-rails