Class: Copyable::Declarations::AfterCopy

Inherits:
Declaration show all
Defined in:
lib/copyable/declarations/after_copy.rb

Class Method Summary collapse

Methods inherited from Declaration

method_name

Class Method Details

.execute(after_copy_block, original_model, new_model) ⇒ Object



5
6
7
# File 'lib/copyable/declarations/after_copy.rb', line 5

def self.execute(after_copy_block, original_model, new_model)
  after_copy_block.call(original_model, new_model) if after_copy_block
end

.required?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/copyable/declarations/after_copy.rb', line 9

def self.required?
  false
end