Class: CopyMove::CircularHierarchy

Inherits:
ActiveRecord::ActiveRecordError
  • Object
show all
Defined in:
lib/copy_move.rb

Instance Method Summary collapse

Constructor Details

#initialize(record) ⇒ CircularHierarchy

Returns a new instance of CircularHierarchy.



3
4
5
6
# File 'lib/copy_move.rb', line 3

def initialize(record)
  @record = record
  super("Page #{record.title} cannot be made a descendant of itself.")
end