Module: RoarExtensions::DestroyedRecordPresenter
- Defined in:
- lib/roar_extensions/destroyed_record_presenter.rb
Class Method Summary collapse
Class Method Details
.included(receiver) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/roar_extensions/destroyed_record_presenter.rb', line 3 def self.included(receiver) receiver.send(:include, RoarExtensions::Presenter) receiver.instance_eval do property :id alias_method :id, :record end end |