active_house 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/lib/active_house/array_joinable.rb +1 -3
- data/lib/active_house/modeling.rb +2 -2
- data/lib/active_house/unionable.rb +2 -2
- data/lib/active_house/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb3456c21e51479ac9a7381ebff75d340ee5bac8
|
4
|
+
data.tar.gz: f1110b0fe12d72ffbd18d1d09cfbe5e4dd28f07c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4bc7ca2dd45a9e9aeb2a8000b09450b9404a1489164a170d4bbc37d1180c9b08787269aa2f2e32f6ee05351d031ec5b7e4a5a0914d8e42ad089ee03efeaf818
|
7
|
+
data.tar.gz: 95af3b027b082e69d32157e4c167d02cd13e564cbdbe7bca511cd0378ba74ca71a7320478e26e3f7f2cb78d4b49af4c8c128b6cbfd352cb3315791cc630dbe60
|
data/.rubocop.yml
CHANGED
@@ -70,11 +70,11 @@ module ActiveHouse
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def [](key)
|
73
|
-
|
73
|
+
get_attribute(key.to_sym)
|
74
74
|
end
|
75
75
|
|
76
76
|
def []=(key, value)
|
77
|
-
|
77
|
+
set_attribute(key.to_sym, value)
|
78
78
|
end
|
79
79
|
|
80
80
|
def assign_attributes(params)
|
@@ -23,9 +23,9 @@ module ActiveHouse
|
|
23
23
|
chain_query unions: new_unions
|
24
24
|
end
|
25
25
|
|
26
|
-
def update_union(name
|
26
|
+
def update_union(name)
|
27
27
|
raise ArgumentError, "can't find union by name #{name}" unless @unions.key?(name)
|
28
|
-
new_union =
|
28
|
+
new_union = yield union_for(name)
|
29
29
|
union(name, new_union)
|
30
30
|
end
|
31
31
|
|
data/lib/active_house/version.rb
CHANGED