model_view 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/model_view/updater.rb +2 -1
- data/lib/model_view/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: 0a78535559f987bdb7760d0ec28048c54d2fd627
|
4
|
+
data.tar.gz: ec311f0d03393ec2ea2a727fa93cac35f910c9bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b9c24b0f67b298297f21d831577bfb77820b510876ece1323cebfb4da040359e25d51ff03ad8924ca44f64ac6b0d5623b13a9d5a919b3ec87176db963d3426c
|
7
|
+
data.tar.gz: 439c83a56cf80f4cb031bee23d3cb967d86b659ab6315d0dcf66927aab7d8aefdb83cb1c45f421ef594758927cf822710e925eae75332f5a625fc23b6c8f7761
|
data/CHANGELOG.md
CHANGED
data/lib/model_view/updater.rb
CHANGED
@@ -7,7 +7,7 @@ module ModelView
|
|
7
7
|
|
8
8
|
setters = setters_for_scope(scope, scopes)
|
9
9
|
|
10
|
-
data.each do |key, value|
|
10
|
+
data.symbolize_keys.each do |key, value|
|
11
11
|
setter = if !setters[key].nil?
|
12
12
|
setter_for_key(setters, key)
|
13
13
|
else
|
@@ -61,6 +61,7 @@ module ModelView
|
|
61
61
|
.merge(scope_setters)
|
62
62
|
.merge(extended_setters)
|
63
63
|
.merge(included_setters)
|
64
|
+
.with_indifferent_access
|
64
65
|
end
|
65
66
|
|
66
67
|
def extract_setters(scope, scope_data)
|
data/lib/model_view/version.rb
CHANGED