Module: LiveActivity::Activity
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#publish(data = {}) ⇒ Object
Publishes the activity to the receivers.
- #refresh_data ⇒ Object
Instance Method Details
#publish(data = {}) ⇒ Object
Publishes the activity to the receivers
54 55 56 57 58 |
# File 'lib/live_activity/activity.rb', line 54 def publish(data = {}) assign_properties(data) self end |
#refresh_data ⇒ Object
61 62 63 |
# File 'lib/live_activity/activity.rb', line 61 def refresh_data save(:validate => false) end |