lib/jera_push/models/message.rb in jera_push-1.1.0 vs lib/jera_push/models/message.rb in jera_push-1.1.1
- old
+ new
@@ -2,11 +2,11 @@
class JeraPush::Message < ActiveRecord::Base
extend Enumerize
self.table_name = "jera_push_messages"
- has_many :devices, through: :message_devices
has_many :message_devices
+ has_many :devices, through: :message_devices
serialize :broadcast_result
enumerize :kind, in: [:broadcast, :specific], predicate: true, default: :specific