Class: Copyable::SingleCopyEnforcer

Inherits:
Object
  • Object
show all
Defined in:
lib/copyable/single_copy_enforcer.rb

Class Method Summary collapse

Class Method Details

.can_copy?(record) ⇒ Boolean

Returns:

  • (Boolean)


64
65
66
# File 'lib/copyable/single_copy_enforcer.rb', line 64

def self.can_copy?(record)
  !CopyRegistry.already_copied?(record: record)
end