kuhsaft 1.8.4 → 1.8.5

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: 73cd2ecb946a2cd746ed66e59a7a42229061598b
4
- data.tar.gz: 35a05d25261d5763f73b706b099ab7749f780d5b
3
+ metadata.gz: be19a1e69db6da33e282fd0383df06e5dd8c580b
4
+ data.tar.gz: 297b4a9777c3fc4a54388120d6c23866d82f609d
5
5
  SHA512:
6
- metadata.gz: 63f92e9766401476bcc8935e6a1392bf4b3cb50452ee056eb21d818804be056c507f51b74a5e11b23182588a05d9dcf18156a6e21cb00558e20723f16dbf987b
7
- data.tar.gz: 6ce336e392eb2ab5af483087f1b8ba7b7365856b93927d36ae458ce00abba4acedc211aaebe9d73df6eed747fd3cb48241380083134a55835069921f843e8863
6
+ metadata.gz: 961c2c7d9ce91ae7e9e073fcbde35077d73563c30a9b07540c3aedf52eb579976969bc2237058ea5129007ccdb1c5413475e09b84e4866dc5d4d87b6fed9918b
7
+ data.tar.gz: 0864fce84b06eff31ba5bbecac5e8682a3c70eb674f4f55dd57650b10b7e38208d48531e21da98ac8ab9a6514b171be787c132b93475cb7aab11f0e0b98316e4
@@ -10,6 +10,10 @@ module Kuhsaft
10
10
  I18n.locale = params[:content_locale]
11
11
  end
12
12
  end
13
+
14
+ def url_options
15
+ { content_locale: I18n.locale }.merge(super)
16
+ end
13
17
  end
14
18
  end
15
19
  end
@@ -4,12 +4,14 @@
4
4
  - if @page.bricks.map(&:type).include? "Kuhsaft::PlaceholderBrick"
5
5
  - unless @page.blank?
6
6
  .page-content
7
- - @page.bricks.localized.each do |brick|
7
+ -# TODO: refactor into scopes or simplify otherwise:
8
+ - @page.bricks.localized.select(&:valid?).each do |brick|
8
9
  = render brick
9
10
 
10
11
  - else
11
12
  - cache [@page, I18n.locale] do
12
13
  - unless @page.blank?
13
14
  .page-content
14
- - @page.bricks.localized.each do |brick|
15
+ -# TODO: refactor into scopes or simplify otherwise:
16
+ - @page.bricks.localized.select(&:valid?).each do |brick|
15
17
  = render brick
@@ -1,3 +1,3 @@
1
1
  module Kuhsaft
2
- VERSION = "1.8.4"
2
+ VERSION = "1.8.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuhsaft
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.4
4
+ version: 1.8.5
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: 2013-07-18 00:00:00.000000000 Z
15
+ date: 2013-07-23 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rspec
@@ -557,7 +557,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
557
557
  version: '0'
558
558
  requirements: []
559
559
  rubyforge_project: kuhsaft
560
- rubygems_version: 2.0.5
560
+ rubygems_version: 2.0.3
561
561
  signing_key:
562
562
  specification_version: 4
563
563
  summary: A tool that helps you to manage your content within your app.