rails_utils 3.3.4 → 3.3.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: 38ed466d9ffe80f3837d2834dc1c3d93118b9dad
4
- data.tar.gz: fc0f7aa93183479ef28666ce314340b457fd9093
3
+ metadata.gz: 62874537daa9a28165f507ea6ab01842d59d3923
4
+ data.tar.gz: ec5e57344d53efbf67eb98ab94ba2a8b9300efeb
5
5
  SHA512:
6
- metadata.gz: 84a48bd2ac87438e8ad0f76ec0bf946c9c8ee44b98e5f6e03d971e9dacf92ad58ab324736fca949c4c2a1abbc5134f69c32db8fde933484435f07a28ded6e7c6
7
- data.tar.gz: 96625ad600492937ad1200e6bcc708d73fea1514956afbeba060ca00cdeb5a9ce20fd809c2a8ca99e92a8e26401e32e55e0a76bb969d07d60f669babf8d0f086
6
+ metadata.gz: 14ca4eca82e4bba2d1a070ccad0d6064df49073c8944dc9259f696d134127951407e0dd11731fea59b98e71379ea3f84bdb93e3e1af23921cd799ef28bbb46f6
7
+ data.tar.gz: 4c786fc854c62c6e64fe761e378a4a835baf02cbf64d260a9129b1881aa613777991ec8ffda48f48dc759a6d12746322325ef7dc93d7c75d23ad8ecf3481755b
data/lib/rails_utils.rb CHANGED
@@ -22,9 +22,11 @@ module RailsUtils
22
22
  end
23
23
 
24
24
  def page_title(options={})
25
- default_page_title = "#{page_controller_class.capitalize} #{page_action_class.capitalize}"
26
- i18n_options = { default: default_page_title }.merge!(options)
27
- I18n.t("#{page_controller_class}.#{page_action_class}.title", i18n_options)
25
+ @page_title ||= begin
26
+ default_page_title = "#{page_controller_class.capitalize} #{page_action_class.capitalize}"
27
+ i18n_options = { default: default_page_title }.merge!(options)
28
+ I18n.t("#{page_controller_class}.#{page_action_class}.title", i18n_options)
29
+ end
28
30
  end
29
31
 
30
32
  def javascript_initialization(options = {})
@@ -1,3 +1,3 @@
1
1
  module RailsUtils
2
- VERSION = "3.3.4"
2
+ VERSION = "3.3.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.4
4
+ version: 3.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Winston Teo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-01 00:00:00.000000000 Z
11
+ date: 2015-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails