Module: ActiveRecord::Block
- Defined in:
- lib/active_record/block.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
Block destroy and update just overwriting destroyable? and updateable? methods.
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
Block destroy and update just overwriting destroyable? and updateable? methods
6 7 8 9 10 11 |
# File 'lib/active_record/block.rb', line 6 def self.included(base) base.extend(ClassMethods) base.load_cant_be_updated_validate base.load_cant_be_destroyed_callback end |
Instance Method Details
#destroyable? ⇒ Boolean
29 30 31 |
# File 'lib/active_record/block.rb', line 29 def destroyable? true end |
#updateable? ⇒ Boolean
33 34 35 |
# File 'lib/active_record/block.rb', line 33 def updateable? true end |