Skip to content

Commit f865a92

Browse files
committed
Removing deprecated alias_method_chain
Issue #19
1 parent 77d9b18 commit f865a92

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/models/no_cms/blocks/concerns/model_with_slots.rb

+2-4
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ module ModelWithSlots
2424
# In the dup implementation we configure the `dup_block_when_duping_slot`
2525
# virtual attribute of the slot with the same value than the attribute
2626
# from this model. This way we propagate the configuration.
27-
def dup_with_slots options = {}
28-
duplicated = dup_without_slots
27+
def dup
28+
duplicated = super
2929
# We just need to dub root slots, if there are nested slots
3030
# will be dupped in each slot
3131
block_slots.roots.each do |slot|
@@ -36,8 +36,6 @@ def dup_with_slots options = {}
3636
end
3737
duplicated
3838
end
39-
alias_method_chain :dup, :slots
40-
4139
end
4240

4341
end

0 commit comments

Comments
 (0)