act_form 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c4d2de3c25f9064a56b848baf11d9fdab30c246
4
- data.tar.gz: eefcd0907991528371683715f88b1ef6ce5184b9
3
+ metadata.gz: d7268ff41b24e1e8e2d261dcdf0f3897b2cfd486
4
+ data.tar.gz: d54b5aaa9ce7c3f554f1363a11b9e6bdee2120c4
5
5
  SHA512:
6
- metadata.gz: 34ce6c8aff8464fd388f744415293b621c2d1e6925b361f27b580fad371a73c330900abfb83f1aa95cef1b325e081d326bd368ed56262edad4da9d5100bdd6de
7
- data.tar.gz: 51c1a884694b3c7a0873dcae073978f9377f52ca46a9e9f08b70363ca08ca739b575a736cc78b6fc5552b0459bdc75de87318c464761757a1b282ad74f5a7e84
6
+ metadata.gz: 5bb5e6f1d241079aeb70354f5ea8a11b681a368f5666820e20cbbbb446c556215e4a5f538f031158eb5288d0e00083704d7ee68396504f700bcb734941955f6b
7
+ data.tar.gz: ef28b81f64dd99df42391460c6d2cf27de9c750d4d9e55f5411f31357149b8401eae07b1a1b119c02c1884ed2f35a131f91df92c86efafa82ce8836d1192b77f
@@ -28,8 +28,8 @@ module ActForm
28
28
 
29
29
  # Record must respond_to attributes method
30
30
  def init_by(record, **attrs)
31
- record = record
32
- _attrs = @record.attributes.extract! *self.class.attribute_set.keys.map(&:to_s)
31
+ @record = record
32
+ _attrs = record.attributes.extract! *self.class.attribute_set.keys.map(&:to_s)
33
33
  assign_attributes _attrs.merge(attrs)
34
34
  end
35
35
 
@@ -1,3 +1,3 @@
1
1
  module ActForm
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: act_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - zires