slayer_rails 0.4.0.beta3 → 0.4.0.beta4

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: 56d1b76a8cec09c228b30899af9ad9a0f0a4923f
4
- data.tar.gz: 44a198a47c6bda5bcf014059ec82a26f70f909ed
3
+ metadata.gz: 192013fb216e6826fb4f266f91877cd969a9c3fa
4
+ data.tar.gz: dfe6ac7132934840e5e08a29810afd38b8636fe7
5
5
  SHA512:
6
- metadata.gz: 618a9eb5d467125ff276be6ca8efbc869dfddc45f5be3c6ef7bccda2b37872d6e10f3aff3d857b88a80f6247c33e425a38f7159784d95670ff00d341ae20ec72
7
- data.tar.gz: f4e18024eaff84859586100dfcfdb5cb45acffe817e327dd8a68a97591946ae738458a048b0e127a4b691c4edd6210f4d2863ef76e0025c200cadecfb6eb1000
6
+ metadata.gz: d60b04b36cbe90c9b18f38467226f0039c550c64102b5b94b757fdff0188064e3403bde8183e3cf5fe6c86065ab0163bbfd5cf9a6f37852c33f0b2509643a4d3
7
+ data.tar.gz: 5657351315c691f4758dc68190ed1a2acd3ec421e0de97ebd68b895f1a0029694ef260b539b90b0ce31d07948086eba5e5a0749512799fd3abe2805f10954024
@@ -14,7 +14,7 @@ module SlayerRails
14
14
  raise Slayer::FormValidationError, message unless valid?
15
15
  end
16
16
 
17
- def to_model(klass, attr_map = nil)
17
+ def as_model(klass, attr_map = nil)
18
18
  all_attrs = klass.new.attributes.keys.map(&:to_sym)
19
19
  return klass.new(attributes.slice(*all_attrs)) if attr_map.nil?
20
20
  attrs = attr_map.inject({}) do |memo, (key, val)|
@@ -1,3 +1,3 @@
1
1
  module SlayerRails
2
- VERSION = '0.4.0.beta3'
2
+ VERSION = '0.4.0.beta4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slayer_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.beta3
4
+ version: 0.4.0.beta4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wyatt Kirby
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-30 00:00:00.000000000 Z
11
+ date: 2019-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slayer