localization 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/localization/railtie.rb +17 -0
- data/lib/localization/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: a19cf2b3efbc4aff8158ed5617e3719811021f5f
|
4
|
+
data.tar.gz: c3380b9a3e828e6d5f2dc1114c8763d5ac36134e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1731d1362dd225219dff27ce7382402ebd7d596ad0853ace8c10d9c74bb48f168a1bd326944d70c2ad9a1b3003fcd68d236da2bb919a2a38c30dd74c65f6271
|
7
|
+
data.tar.gz: c10c395c75e1e9a7197e631a83cb83e0f62e87674c6ab8abbde4738fdf5fd447a40716281dfd8d591baf383d1c9c21245d2f034d869992f206e1cffdffc4f834
|
data/lib/localization/railtie.rb
CHANGED
@@ -14,6 +14,19 @@ class Localization
|
|
14
14
|
def localization
|
15
15
|
Localization.new.send(I18n.locale)
|
16
16
|
end
|
17
|
+
|
18
|
+
def raw_action_local
|
19
|
+
raw(action_local)
|
20
|
+
end
|
21
|
+
alias_method :raw_view_local, :raw_action_local
|
22
|
+
|
23
|
+
def raw_control_local
|
24
|
+
raw(control_local)
|
25
|
+
end
|
26
|
+
|
27
|
+
def raw_localization
|
28
|
+
raw(localization)
|
29
|
+
end
|
17
30
|
end
|
18
31
|
|
19
32
|
if defined?(::Rails)
|
@@ -24,6 +37,10 @@ class Localization
|
|
24
37
|
ActionController::Base.helper_method :action_local
|
25
38
|
ActionController::Base.helper_method :control_local
|
26
39
|
ActionController::Base.helper_method :localization
|
40
|
+
ActionController::Base.helper_method :raw_view_local
|
41
|
+
ActionController::Base.helper_method :raw_action_local
|
42
|
+
ActionController::Base.helper_method :raw_control_local
|
43
|
+
ActionController::Base.helper_method :raw_localization
|
27
44
|
end
|
28
45
|
|
29
46
|
initializer "localization_railtie.set_localization_paths" do
|
data/lib/localization/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: localization
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kurtis Rainbolt-Greene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mustache
|