Module: ActivityNotification::DynamoidExtension
- Extended by:
- ActiveSupport::Concern
- Included in:
- ORM::Dynamoid::Notification, ORM::Dynamoid::Subscription
- Defined in:
- lib/activity_notification/orm/dynamoid/extension.rb
Overview
Dynamoid extension module for ActivityNotification.
Class Method Summary collapse
-
.delete_all ⇒ Object
Defines delete_all method as calling delete_table and create_table methods.
Instance Method Summary collapse
-
#becomes(klass) ⇒ Object
Returns an instance of the specified
klasswith the attributes of the current record.
Class Method Details
.delete_all ⇒ Object
Defines delete_all method as calling delete_table and create_table methods
173 174 175 176 |
# File 'lib/activity_notification/orm/dynamoid/extension.rb', line 173 def delete_all delete_table create_table(sync: true) end |
Instance Method Details
#becomes(klass) ⇒ Object
Returns an instance of the specified klass with the attributes of the current record.
180 181 182 |
# File 'lib/activity_notification/orm/dynamoid/extension.rb', line 180 def becomes(klass) self end |