Module: SharedBehaviour::Indestructable

Included in:
Product, ProductCriteria
Defined in:
app/models/shared_behaviour/indestructable.rb

Overview

rubocop:todo Style/Documentation

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


3
4
5
# File 'app/models/shared_behaviour/indestructable.rb', line 3

def self.included(base)
  base.class_eval { before_destroy :prevent_destruction }
end