module Marta::PageArithmetic
This is for merging of Smartpages and elements.
There is a need too form a right collection out of two elements Page merging will live here as well.
Private Instance Methods
forget_unstable(old_one, new_one)
click to toggle source
Forgetting unstable attributes leaving the same ones and new ones
# File lib/marta/page_arithmetic.rb, line 130 def forget_unstable(old_one, new_one) merger = MethodMerger.new(old_one, new_one) merger.forget_unstable end
make_collection(one, two)
click to toggle source
Form collection out of two element hashes
# File lib/marta/page_arithmetic.rb, line 124 def make_collection(one, two) merger = MethodMerger.new(one, two) merger.do_collection end