class Agnostic::Duplicate::ChangeSet::Base
Base
class for all changesets. Subclasses should implement method ‘apply` (see apply)
Attributes
attributes[R]
Public Class Methods
new(attributes)
click to toggle source
# File lib/agnostic/duplicate.rb, line 146 def initialize(attributes) @attributes = attributes end
Private Instance Methods
raise_copy_error_for(attribute)
click to toggle source
# File lib/agnostic/duplicate.rb, line 152 def raise_copy_error_for(attribute) msg = "It wasn't possible to copy attribute '#{attribute}'" fail CopyError, msg, caller end