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: d0035af3caff021de85bdb173c3553565c150cad
4
- data.tar.gz: dfe2d07945b4567081082b3c1bdaf00c80abeca4
3
+ metadata.gz: 36c0905e4dcde52f174478b059cac112e56b4ec9
4
+ data.tar.gz: b4211b3a6b4e4e4c222bd74ea191519b56da171f
5
5
  SHA512:
6
- metadata.gz: e8b5c21b916da59ca16a0c2fd5a43463adc08db750ca982ec5aaac954f0585dee58bf104406f5d3cbfe39804e69bd5512396b815c820db6323bc7757b95f3e43
7
- data.tar.gz: da06fb6675fac0691f287c6a9a3e6f0891f22a714e497af591d05760d2c4fa3c9cbd293d0d67bb5a5909270d75bfaaca25e66d5fe2906624218661b79b0bfe45
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.0.15"
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
- attr_accessible :"#{attr_name}_#{locale}" if accessible_attributes.include?(attr_name)
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)
@@ -1,3 +1,3 @@
1
1
  module EasyGlobalize3Accessors
2
- VERSION = '1.3.0'
2
+ VERSION = '1.3.1'
3
3
  end
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.0
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-07-22 00:00:00.000000000 Z
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.0.15
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.0.15
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.5
113
+ rubygems_version: 2.0.3
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: Define methods for accessing translated attributes