Class: ActiveRecord::Base
- Inherits:
-
Object
- Object
- ActiveRecord::Base
- Defined in:
- lib/undeletable.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.raise_on_delete? ⇒ Boolean
109 110 111 |
# File 'lib/undeletable.rb', line 109 def self.raise_on_delete? false end |
.undeletable ⇒ Object
93 94 95 |
# File 'lib/undeletable.rb', line 93 def self.undeletable undeletable_init(false) end |
.undeletable! ⇒ Object
97 98 99 |
# File 'lib/undeletable.rb', line 97 def self.undeletable! undeletable_init(true) end |
.undeletable? ⇒ Boolean
101 102 103 |
# File 'lib/undeletable.rb', line 101 def self.undeletable? false end |
Instance Method Details
#raise_on_delete? ⇒ Boolean
113 114 115 |
# File 'lib/undeletable.rb', line 113 def raise_on_delete? self.class.raise_on_delete? end |
#undeletable? ⇒ Boolean
105 106 107 |
# File 'lib/undeletable.rb', line 105 def undeletable? self.class.undeletable? end |