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 +4 -4
- data/lib/rails_utils.rb +5 -3
- data/lib/rails_utils/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62874537daa9a28165f507ea6ab01842d59d3923
|
4
|
+
data.tar.gz: ec5e57344d53efbf67eb98ab94ba2a8b9300efeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
26
|
-
|
27
|
-
|
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 = {})
|
data/lib/rails_utils/version.rb
CHANGED
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
|
+
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
|
11
|
+
date: 2015-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|