Module: SharedBehaviour::Indestructable

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

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


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

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