We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77d9b18 commit f865a92Copy full SHA for f865a92
app/models/no_cms/blocks/concerns/model_with_slots.rb
@@ -24,8 +24,8 @@ module ModelWithSlots
24
# In the dup implementation we configure the `dup_block_when_duping_slot`
25
# virtual attribute of the slot with the same value than the attribute
26
# from this model. This way we propagate the configuration.
27
- def dup_with_slots options = {}
28
- duplicated = dup_without_slots
+ def dup
+ duplicated = super
29
# We just need to dub root slots, if there are nested slots
30
# will be dupped in each slot
31
block_slots.roots.each do |slot|
@@ -36,8 +36,6 @@ def dup_with_slots options = {}
36
end
37
duplicated
38
39
- alias_method_chain :dup, :slots
40
-
41
42
43
0 commit comments