Class: Pragma::Operation::Destroy
- Inherits:
-
Base
- Object
- Base
- Pragma::Operation::Destroy
- Includes:
- Defaults
- Defined in:
- lib/pragma/operation/destroy.rb
Overview
Finds the requested record, authorizes it and decorates it.
Instance Method Summary collapse
Methods included from Defaults
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/pragma/operation/destroy.rb', line 10 def call context.record = find_record context.record context.record.destroy! head :no_content end |