Class: CopyMove::CircularHierarchy
- Inherits:
-
ActiveRecord::ActiveRecordError
- Object
- ActiveRecord::ActiveRecordError
- CopyMove::CircularHierarchy
- Defined in:
- lib/copy_move.rb
Instance Method Summary collapse
-
#initialize(record) ⇒ CircularHierarchy
constructor
A new instance of CircularHierarchy.
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 |