Sha256: db59fee07787da3ac65a8c04e2c277ccc8975491b22f7adb1d4e621dfafadbcf

Contents?: true

Size: 297 Bytes

Versions: 11

Compression:

Stored size: 297 Bytes

Contents

module Copyable
  module Declarations
    class AfterCopy < Declaration

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

      def self.required?
        false
      end

    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
copyable-0.3.5 lib/copyable/declarations/after_copy.rb
copyable-0.3.3 lib/copyable/declarations/after_copy.rb
copyable-0.3.2 lib/copyable/declarations/after_copy.rb
copyable-0.3.1 lib/copyable/declarations/after_copy.rb
copyable-0.3.0 lib/copyable/declarations/after_copy.rb
copyable-0.2.0 lib/copyable/declarations/after_copy.rb
copyable-0.1.2 lib/copyable/declarations/after_copy.rb
copyable-0.1.1 lib/copyable/declarations/after_copy.rb
copyable-0.1.0 lib/copyable/declarations/after_copy.rb
copyable-0.0.2 lib/copyable/declarations/after_copy.rb
copyable-0.0.1 lib/copyable/declarations/after_copy.rb