Class: Push::Feedback
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Push::Feedback
- Includes:
- Daemon::DatabaseReconnectable
- Defined in:
- lib/push/feedback.rb
Instance Method Summary collapse
Methods included from Daemon::DatabaseReconnectable
#adaptor_errors, #check_database_is_connected, #database_connection_lost, #reconnect_database, #sleep_to_avoid_thrashing, #with_database_reconnect_and_retry
Instance Method Details
#is_processed(name) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/push/feedback.rb', line 12 def is_processed(name) with_database_reconnect_and_retry(name) do self.processed = true self.processed_at = Time.now self.save end end |