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 +4 -4
- data/lib/slayer_rails/extensions/form.rb +1 -1
- data/lib/slayer_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 192013fb216e6826fb4f266f91877cd969a9c3fa
|
4
|
+
data.tar.gz: dfe6ac7132934840e5e08a29810afd38b8636fe7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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)|
|
data/lib/slayer_rails/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slayer
|