advanced 0.1.0 → 0.1.3

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: 03d013abf9f84626c703a7776d3604ae6214fa87
4
- data.tar.gz: c1d2e25e5d09e10aabce2f4740f8fb8b77f091cf
3
+ metadata.gz: 65afbbcb3725f8de370cb12364ce11445a4b2180
4
+ data.tar.gz: a7af9898058816118e0a2c17000de8127421deef
5
5
  SHA512:
6
- metadata.gz: eea046ecbc5d2be4827b866d2b0170bbcd9a5c2ba0071184489f85d7ede4ea5ef68b5c7f158cd9505e87c5d81220dd6d150f026d253612b5d0e74645a6da8f8c
7
- data.tar.gz: d8ad6abde094aadff5ca891dc319e7635bfb0694c4fd7103ed469bc21d6bed3a06b81214cf14745310d15a6e2e5996874bd50a5ef4af3519ad9468f78c22e926
6
+ metadata.gz: 1e6173e22bcfcd7af9e6c3f83b15a8b5ec99a7ab046c285348461ab281a07e50252f4ff63b8b92cb60dca5f5d62d00bdfe8a3980eb123065f07a3116e39284f3
7
+ data.tar.gz: 50097e33a3d6287efceefcc44d8d3c9de04cb28d100ae3578d4edaf9cf883c2154d168ec4678653d9bb43386dba9422ff2db2866e1b8e2f13ab6cc74d6b86620
@@ -34,8 +34,10 @@ module Advanced
34
34
  instance_variable_set(ivar, form.new)
35
35
  end
36
36
 
37
- define_method "#{key}=" do |values|
38
- instance_variable_set(ivar, form.new(values))
37
+ ["#{key}=", "#{key}_attributes="].each do |name|
38
+ define_method(name) do |values|
39
+ instance_variable_set(ivar, form.new(values))
40
+ end
39
41
  end
40
42
  end
41
43
 
@@ -1,3 +1,3 @@
1
1
  module Advanced
2
- VERSION = "0.1.0"
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: advanced
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ray Zane
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-07 00:00:00.000000000 Z
11
+ date: 2017-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport