easy_globalize3_accessors 1.3.0 → 1.3.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36c0905e4dcde52f174478b059cac112e56b4ec9
|
4
|
+
data.tar.gz: b4211b3a6b4e4e4c222bd74ea191519b56da171f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d595df8d400dc9d6b1ed4941cb11510b0823e407ffcf179aa815c936884d66590a83768fb41b54bf5fce1cadc8281ee031715d7dcbb1e1d2ec6b8a7ebe1e0075
|
7
|
+
data.tar.gz: b17be90e4b2c891e9101c70f7810a26ba4b2470b77c23078d0743a1771b499e3e93297565168be942e66e2fbe1e7a6b0dded5016e1c560c07f5c55dcdbea5d17
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
|
17
17
|
s.add_dependency "globalize3", "~> 0.3.0"
|
18
18
|
|
19
|
-
s.add_development_dependency "bundler", "~> 1.
|
19
|
+
s.add_development_dependency "bundler", "~> 1.3.5"
|
20
20
|
s.add_development_dependency "rake", "~> 0.9.2"
|
21
21
|
s.add_development_dependency "sqlite3"
|
22
22
|
|
@@ -30,7 +30,9 @@ module EasyGlobalize3Accessors
|
|
30
30
|
define_method :"#{attr_name}_#{locale}=" do |value|
|
31
31
|
write_attribute(attr_name, value, :locale => locale)
|
32
32
|
end
|
33
|
-
|
33
|
+
if respond_to?(:accessible_attributes) && accessible_attributes.include?(attr_name)
|
34
|
+
attr_accessible :"#{attr_name}_#{locale}"
|
35
|
+
end
|
34
36
|
end
|
35
37
|
|
36
38
|
def each_attribute_and_locale(options)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy_globalize3_accessors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomasz Stachewicz
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-
|
14
|
+
date: 2013-08-19 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: globalize3
|
@@ -33,14 +33,14 @@ dependencies:
|
|
33
33
|
requirements:
|
34
34
|
- - ~>
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 1.
|
36
|
+
version: 1.3.5
|
37
37
|
type: :development
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: 1.
|
43
|
+
version: 1.3.5
|
44
44
|
- !ruby/object:Gem::Dependency
|
45
45
|
name: rake
|
46
46
|
requirement: !ruby/object:Gem::Requirement
|
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
version: 1.3.6
|
111
111
|
requirements: []
|
112
112
|
rubyforge_project: easy_globalize3_accessors
|
113
|
-
rubygems_version: 2.0.
|
113
|
+
rubygems_version: 2.0.3
|
114
114
|
signing_key:
|
115
115
|
specification_version: 4
|
116
116
|
summary: Define methods for accessing translated attributes
|