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

Instance Method Summary collapse

Class Method Details

.delete_allObject

Defines delete_all method as calling delete_table and create_table methods



251
252
253
254
# File 'lib/activity_notification/orm/dynamoid/extension.rb', line 251

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.



258
259
260
# File 'lib/activity_notification/orm/dynamoid/extension.rb', line 258

def becomes(klass)
  self
end