translateable_attributes 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.md +3 -0
- data/lib/translateable_attributes/methods.rb +2 -2
- data/lib/translateable_attributes/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: 270dd98dafc047e70a55f988a2a5cab26fce1365
|
4
|
+
data.tar.gz: 494dc691dc735dd0e388c1cb67f5a5f1e1f4e16b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a04cb78cc73fcabb40dd09432972984f94c2536350cdf9a6811581ed81c80338f34b839ebd3d8013b90209c0859257611f09bcd5ea1d465e3c41a64001183993
|
7
|
+
data.tar.gz: 4603671a4ce46d56020f8df3d7be2393832aa427267c88f81adedb68e0d1f0287309d700bfcd588570079f716140d93f84b658de5a096c11e10a62566aaa4b6f
|
data/HISTORY.md
CHANGED
@@ -16,8 +16,8 @@ module TranslateableAttributes
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
|
-
define_singleton_method "translated_#{attribute}" do |value|
|
20
|
-
I18n.t([namespace, value].join
|
19
|
+
define_singleton_method "translated_#{attribute}" do |value, translation_options = {}|
|
20
|
+
I18n.t([namespace, value].join('.'), translation_options)
|
21
21
|
end
|
22
22
|
|
23
23
|
define_singleton_method "possible_#{plural_attribute}" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: translateable_attributes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toms Mikoss
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|