mirror of
https://github.com/moparisthebest/mailcatcher
synced 2024-12-21 23:08:54 -05:00
Make the delete all messages variables not conflict with the delete single message variables.
This commit is contained in:
parent
efd7b4ff0e
commit
a6ef2147e0
@ -144,11 +144,11 @@ module MailCatcher::Mail extend self
|
||||
end
|
||||
|
||||
def delete!
|
||||
@delete_messages_query ||= db.prepare "DELETE FROM message"
|
||||
@delete_message_parts_query ||= db.prepare "DELETE FROM message_part"
|
||||
@delete_all_messages_query ||= db.prepare "DELETE FROM message"
|
||||
@delete_all_message_parts_query ||= db.prepare "DELETE FROM message_part"
|
||||
|
||||
@delete_messages_query.execute and
|
||||
@delete_message_parts_query.execute
|
||||
@delete_all_messages_query.execute and
|
||||
@delete_all_message_parts_query.execute
|
||||
end
|
||||
|
||||
def delete_message!(message_id)
|
||||
|
Loading…
Reference in New Issue
Block a user