lib/has_messages.rb in has_messages-0.3.0 vs lib/has_messages.rb in has_messages-0.3.1

- old
+ new

@@ -51,16 +51,16 @@ module InstanceMethods # Composed messages that have not yet been sent. These consists of all # messages that are currently in the "unsent" state. def unsent_messages - messages.with_state('unsent') + messages.with_state(:unsent) end # Composed messages that have already been sent. These consists of all # messages that are currently in the "queued" or "sent" states. def sent_messages - messages.with_states(%w(queued sent)) + messages.with_states(:queued, :sent) end end end ActiveRecord::Base.class_eval do