options_model 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b4e29ec3194ea217ff7c8a44d06c78bce83298323a7b4f55e590648b3d5da452
|
|
4
|
+
data.tar.gz: fff6ee9e90c32c566778effdff07899d2d41255b1ad39244efff2abd3afb4549
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e32035b0d90328dc8df7974224b2b244fbe0690cbd121a83a03e0c0b931657e10e06eda4ab6a0f955225d915829172ff599211d2b33bfd95f3776589ea0eff1d
|
|
7
|
+
data.tar.gz: 7f292be9bde0d3c61826e87ae20a2ed4d7b99743d10f85c6c3992db0476deb84d13488d1ce5b45c017cf136dfc7d85ce3a933e8184c6883d38c8731c2324e562
|
|
@@ -15,7 +15,7 @@ module OptionsModel
|
|
|
15
15
|
update_attributes(other)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
def
|
|
18
|
+
def replace(other)
|
|
19
19
|
return unless other
|
|
20
20
|
|
|
21
21
|
raise ArgumentError, "#{other} must be respond to `to_h`" unless other.respond_to?(:to_h)
|
|
@@ -29,7 +29,7 @@ module OptionsModel
|
|
|
29
29
|
end
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
alias update_attributes
|
|
32
|
+
alias update_attributes replace
|
|
33
33
|
|
|
34
34
|
def [](key)
|
|
35
35
|
public_send(key) if respond_to?(key)
|