lazy_record 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lazy_record/associations.rb +1 -1
- data/lib/lazy_record/attributes.rb +5 -0
- data/lib/lazy_record/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: 2c230f7e027c8258f3252edb747c7287ad6e3328
|
4
|
+
data.tar.gz: 7c79ccae1ec72aa41c7eb33a19092186e07b081d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58bebeffd2050ecde571b12fbd761271f3dd1ca7c86abde51e3aa0ed68f3d6c5f797eb4a212d832f71faa46b460402eb0e2d2f61f0f75305e8c173765c656eba
|
7
|
+
data.tar.gz: 61ef6f43c5db74633417eb8cf3ad239e7ac2bee3d5d2dde3f75758c5313698e525ce33361c8ea3dbdc5444731ec10a57e28a0312d59c4120bfc8f010f8514b6b
|
@@ -21,6 +21,11 @@ module LazyRecord
|
|
21
21
|
|
22
22
|
def define_initialize
|
23
23
|
define_method(:initialize) do |opts = {}, &block|
|
24
|
+
opts = opts.inject({}) do |memo, (k,v)|
|
25
|
+
memo[k.to_sym] = v
|
26
|
+
memo
|
27
|
+
end
|
28
|
+
|
24
29
|
instance_attr_accessors.each do |attr|
|
25
30
|
send("#{attr}=", opts[attr.to_sym])
|
26
31
|
end
|
data/lib/lazy_record/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lazy_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- M. Simon Borg
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|