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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/handlers/inheritance.rb +4 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7309d6b773941debdd36cea75f51b5b1283b0d6ce68a405c871a330ff66fae94
4
- data.tar.gz: f7b7ba2844b0275e699b9d61b30aa735c018e69283a9d3554469711b0e1e1f6c
3
+ metadata.gz: 32bbcd1a6684a09bb606d3a6848f52c32afaf66f75df93f6fd07bd997c5f06ab
4
+ data.tar.gz: c10d1950dcffeccdf608792121c8aa662514a362bda69c12d252acabe09916bc
5
5
  SHA512:
6
- metadata.gz: 66e6e119ad7709506ddbd1b0dfb7829a3b5ef9569c1314f8d596767b46a3a580f3d1491ec93a739c45b5cab596754aa284e124925e6300c7047afc6d9b3d1de9
7
- data.tar.gz: '0294103c0731a28629de35e9a7b727e17b7e84ef6ec5fa6577b4ba34563209d5d632c519a769c7b02186208a0bce5d846912a8e20aa4cde6bd7d608820606353'
6
+ metadata.gz: bd52ac4dd87b46db10f493409d0ef3b2040e995be7d9c158bba8b51dc32f1765765f553813792bba9f064945c0ccb7c6385241749da6ba68de4bb1e59ed961e4
7
+ data.tar.gz: 5f420c1413ec7d1386c0a20288b67ca71b42fa950e3edf72cf0273987de6e040b92e7718e26e37f6527719a57d20a64aa8f5cef8bedc9accdaa50e9981a744a9
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_form_objects
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michaël Villeneuve