active_form_objects 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/handlers/inheritance.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32bbcd1a6684a09bb606d3a6848f52c32afaf66f75df93f6fd07bd997c5f06ab
|
4
|
+
data.tar.gz: c10d1950dcffeccdf608792121c8aa662514a362bda69c12d252acabe09916bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd52ac4dd87b46db10f493409d0ef3b2040e995be7d9c158bba8b51dc32f1765765f553813792bba9f064945c0ccb7c6385241749da6ba68de4bb1e59ed961e4
|
7
|
+
data.tar.gz: 5f420c1413ec7d1386c0a20288b67ca71b42fa950e3edf72cf0273987de6e040b92e7718e26e37f6527719a57d20a64aa8f5cef8bedc9accdaa50e9981a744a9
|
data/lib/handlers/inheritance.rb
CHANGED
@@ -9,18 +9,18 @@ module Handlers
|
|
9
9
|
|
10
10
|
def handle
|
11
11
|
return nil if regular_inheritance?
|
12
|
-
|
12
|
+
|
13
13
|
@klass.class_variables.each do |var_name|
|
14
14
|
dsl_values = @subclass.class_variable_get(var_name)
|
15
15
|
|
16
|
-
dsl_values[@subclass.name] = dsl_values[@klass.name]
|
16
|
+
dsl_values[@subclass.name] = dsl_values[@klass.name].dup
|
17
17
|
end
|
18
18
|
end
|
19
|
-
|
19
|
+
|
20
20
|
private
|
21
21
|
|
22
22
|
def regular_inheritance?
|
23
23
|
@klass == ActiveFormObjects::Base
|
24
24
|
end
|
25
25
|
end
|
26
|
-
end
|
26
|
+
end
|