(7.9ms)  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
   (0.9ms)  CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
  ActiveRecord::SchemaMigration Load (0.1ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Migrating to CreateUsers (20140105070446)
   (0.0ms)  begin transaction
   (0.3ms)  CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "created_at" datetime, "updated_at" datetime) 
  SQL (0.2ms)  INSERT INTO "schema_migrations" ("version") VALUES (?)  [["version", "20140105070446"]]
   (0.7ms)  commit transaction
Migrating to CreateNotifyUserNotifications (20140105070448)
   (0.0ms)  begin transaction
   (0.3ms)  CREATE TABLE "notify_user_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "target_id" integer, "target_type" varchar(255), "params" text, "state" varchar(255), "created_at" datetime, "updated_at" datetime) 
  SQL (0.1ms)  INSERT INTO "schema_migrations" ("version") VALUES (?)  [["version", "20140105070448"]]
   (0.6ms)  commit transaction
  ActiveRecord::SchemaMigration Load (0.1ms)  SELECT "schema_migrations".* FROM "schema_migrations"
   (8.4ms)  CREATE TABLE "notify_user_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "target_id" integer, "target_type" varchar(255), "params" text, "state" varchar(255), "created_at" datetime, "updated_at" datetime) 
   (0.9ms)  CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "created_at" datetime, "updated_at" datetime) 
   (0.9ms)  CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
   (1.0ms)  CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
   (0.1ms)  SELECT version FROM "schema_migrations"
   (0.8ms)  INSERT INTO "schema_migrations" (version) VALUES ('20140105070448')
   (1.1ms)  INSERT INTO "schema_migrations" (version) VALUES ('20140105070446')
   (0.5ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (2.9ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
  NotifyUser::BaseNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.5ms)
   (0.4ms)  rollback transaction
   (0.2ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.1ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
  NotifyUser::BaseNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.2ms)
   (0.4ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_read as HTML
  Parameters: {"ids"=>["1"]}
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
  NotifyUser::BaseNotification Load (0.3ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.5ms)
  NewPostNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = ? LIMIT 1  [["id", 1]]
   (0.4ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_read as HTML
  Parameters: {"ids"=>["1"]}
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
  NotifyUser::BaseNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.4ms)
   (0.4ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
   (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
   (0.5ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)
  NotifyUser::BaseNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1  [["id", 1]]
  User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  NotifyUser::BaseNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
   (0.1ms)  SAVEPOINT active_record_1
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
   (0.3ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.2ms)  SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2)
   (0.3ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1  [["id", 2]]
  User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
   (0.0ms)  SAVEPOINT active_record_1
  User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2  [["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1

Sent mail to user@example.com (7.0ms)
Date: Sun, 05 Jan 2014 18:04:53 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <52c90415e9f5c_68dd8082dbf8634e1@tomass-air-11.mail>
Subject: Rails402: You have new Newpostnotification notifications.
Mime-Version: 1.0
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: 7bit
layout-name: action_mailer
layout-path: notify_user/layouts

<div>
  New Post Notification happened.  
</div>
<div>
  New Post Notification happened.  
</div>

   (0.4ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (1.2ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1  [["id", 1]]
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  NotifyUser::BaseNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
   (0.1ms)  SAVEPOINT active_record_1
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
  User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]

Sent mail to user@example.com (6.2ms)
Date: Sun, 05 Jan 2014 18:04:53 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <52c90415f1b80_68dd8082dbf8635d@tomass-air-11.mail>
Subject: Rails402: You have a new Newpostnotification notification.
Mime-Version: 1.0
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: 7bit
layout-name: action_mailer
layout-path: notify_user/layouts

New Post Notification happened.
   (0.8ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.4ms)  begin transaction
  Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.3ms)
  Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (1.9ms)
  Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.0ms)
  Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (0.5ms)
   (0.1ms)  rollback transaction
   (0.3ms)  begin transaction
  Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.2ms)
  Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (1.7ms)
  Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.0ms)
  Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (0.5ms)
   (0.1ms)  rollback transaction
   (0.3ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.3ms)  begin transaction
  Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.3ms)
  Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (1.7ms)
  Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.0ms)
  Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (0.5ms)
   (0.1ms)  rollback transaction
   (0.3ms)  begin transaction
  Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.2ms)
  Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (1.8ms)
  Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.0ms)
  Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (0.6ms)
   (0.1ms)  rollback transaction
   (0.3ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.2ms)  begin transaction
  Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.2ms)
  Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb within notify_user/layouts/action_mailer (1.8ms)
  Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.0ms)
  Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb within notify_user/layouts/action_mailer (0.5ms)
   (0.1ms)  rollback transaction
   (0.4ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (5.1ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
  NotifyUser::BaseNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.7ms)
   (0.5ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.4ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
  NotifyUser::BaseNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.2ms)
   (0.5ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_read as HTML
  Parameters: {"ids"=>["1"]}
  SQL (0.1ms)  UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.2ms)
  NewPostNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = ? LIMIT 1  [["id", 1]]
   (0.4ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_read as HTML
  Parameters: {"ids"=>["1"]}
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
  NotifyUser::BaseNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms)
   (0.5ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
   (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
   (0.5ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.3ms)  SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)
  NotifyUser::BaseNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1  [["id", 1]]
  User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
   (0.0ms)  SAVEPOINT active_record_1
  User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
   (0.5ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.2ms)  SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2)
   (0.4ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1  [["id", 2]]
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
   (0.0ms)  SAVEPOINT active_record_1
  User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2  [["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1

Sent mail to user@example.com (8.4ms)
Date: Sun, 05 Jan 2014 18:16:13 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <52c906bd9e1d1_69db8082dbf848758@tomass-air-11.mail>
Subject: Rails402: You have new Newpostnotification notifications.
Mime-Version: 1.0
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
tml4/strict.dtd">
<html>
<head>
  <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
"/>
  <title></title>
</head>

<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
ing: optimizeLegibility;">
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
  <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
    Logo
  </div>
</div>
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
">
  <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
    <div>
  New Post Notification happened.  =

</div>
<div>
  New Post Notification happened.  =

</div>

  </div>
</div>
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
  <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
    <p style=3D"text-align: center;">
      This is the default generated layout. A privacy declaration could g=
o here.
    </p>
    <p style=3D"text-align: center; margin-bottom: 0px;">
      =C2=A9 MyCompany Pty Ltd
    </p>
    <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
      ABN 123 456 789
    </p>
  </div>
</div>
</body>
</html>=

   (0.4ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1  [["id", 1]]
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
   (0.0ms)  SAVEPOINT active_record_1
  User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]

Sent mail to user@example.com (5.7ms)
Date: Sun, 05 Jan 2014 18:16:13 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <52c906bda4d58_69db8082dbf8488fe@tomass-air-11.mail>
Subject: Rails402: You have a new Newpostnotification notification.
Mime-Version: 1.0
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
tml4/strict.dtd">
<html>
<head>
  <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
"/>
  <title></title>
</head>

<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
ing: optimizeLegibility;">
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
  <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
    Logo
  </div>
</div>
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
">
  <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
    New Post Notification happened.
  </div>
</div>
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
  <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
    <p style=3D"text-align: center;">
      This is the default generated layout. A privacy declaration could g=
o here.
    </p>
    <p style=3D"text-align: center; margin-bottom: 0px;">
      =C2=A9 MyCompany Pty Ltd
    </p>
    <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
      ABN 123 456 789
    </p>
  </div>
</div>
</body>
</html>=

   (0.5ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.3ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (4.8ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
  NotifyUser::BaseNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms)
   (0.4ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.2ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
  NotifyUser::BaseNotification Load (0.4ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.4ms)
   (0.4ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_read as HTML
  Parameters: {"ids"=>["1"]}
  SQL (0.1ms)  UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
  NotifyUser::BaseNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)
  NewPostNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = ? LIMIT 1  [["id", 1]]
   (0.4ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_read as HTML
  Parameters: {"ids"=>["1"]}
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
  NotifyUser::BaseNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
   (0.4ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
   (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
   (0.4ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.2ms)  SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1  [["id", 1]]
  User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
   (0.0ms)  SAVEPOINT active_record_1
  User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
   (0.4ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.2ms)  SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.2ms)  SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2)
   (0.4ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1  [["id", 2]]
  User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
   (0.0ms)  SAVEPOINT active_record_1
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2  [["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1

Sent mail to user@example.com (8.5ms)
Date: Sun, 05 Jan 2014 21:46:46 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <52c93816e5cb5_743980c1fbe4185b4@Tomass-MacBook-Air-11.local.mail>
Subject: Rails402: You have new Newpostnotification notifications.
Mime-Version: 1.0
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
tml4/strict.dtd">
<html>
<head>
  <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
"/>
  <title></title>
</head>

<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
ing: optimizeLegibility;">
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
  <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
    Logo
  </div>
</div>
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
">
  <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
    <div>
  New Post Notification happened.  =

</div>
<div>
  New Post Notification happened.  =

</div>

  </div>
</div>
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
  <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
    <p style=3D"text-align: center;">
      This is the default generated layout. A privacy declaration could g=
o here.
    </p>
    <p style=3D"text-align: center; margin-bottom: 0px;">
      =C2=A9 MyCompany Pty Ltd
    </p>
    <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
      ABN 123 456 789
    </p>
  </div>
</div>
</body>
</html>=

   (0.5ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1  [["id", 1]]
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
   (0.1ms)  SAVEPOINT active_record_1
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]

Sent mail to user@example.com (7.7ms)
Date: Sun, 05 Jan 2014 21:46:46 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <52c93816ed465_743980c1fbe4186c6@Tomass-MacBook-Air-11.local.mail>
Subject: Rails402: You have a new Newpostnotification notification.
Mime-Version: 1.0
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
tml4/strict.dtd">
<html>
<head>
  <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
"/>
  <title></title>
</head>

<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
ing: optimizeLegibility;">
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
  <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
    Logo
  </div>
</div>
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
">
  <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
    New Post Notification happened.
  </div>
</div>
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
  <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
    <p style=3D"text-align: center;">
      This is the default generated layout. A privacy declaration could g=
o here.
    </p>
    <p style=3D"text-align: center; margin-bottom: 0px;">
      =C2=A9 MyCompany Pty Ltd
    </p>
    <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
      ABN 123 456 789
    </p>
  </div>
</div>
</body>
</html>=

   (0.4ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  NewPostNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
   (0.4ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (1.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (4.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
  NotifyUser::BaseNotification Load (0.3ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
Completed 200 OK in 7ms (Views: 3.3ms | ActiveRecord: 0.6ms)
   (6.8ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
   (0.2ms)  RELEASE SAVEPOINT active_record_1
   (0.2ms)  SAVEPOINT active_record_1
  SQL (1.6ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
  NotifyUser::BaseNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
Completed 200 OK in 17ms (Views: 16.0ms | ActiveRecord: 0.2ms)
   (0.4ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_read as HTML
  Parameters: {"ids"=>["1"]}
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
  NotifyUser::BaseNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.4ms)
  NewPostNotification Load (0.3ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = ? LIMIT 1  [["id", 1]]
   (0.5ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_read as HTML
  Parameters: {"ids"=>["1"]}
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.3ms)
   (1.3ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
   (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
   (6.9ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.7ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.3ms)  SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)
  NotifyUser::BaseNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1  [["id", 1]]
  User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  NotifyUser::BaseNotification Load (0.3ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
   (0.1ms)  SAVEPOINT active_record_1
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.4ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.2ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
   (0.4ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.2ms)  SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.3ms)  SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2)
   (0.4ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1  [["id", 2]]
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
   (0.3ms)  SAVEPOINT active_record_1
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.5ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
   (0.2ms)  RELEASE SAVEPOINT active_record_1
   (2.1ms)  SAVEPOINT active_record_1
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.4ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2  [["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1

Sent mail to user@example.com (10.8ms)
Date: Sun, 05 Jan 2014 21:50:55 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <52c9390f9c98d_74b380c2bbec64367@Tomass-MacBook-Air-11.local.mail>
Subject: Rails402: You have new Newpostnotification notifications.
Mime-Version: 1.0
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
tml4/strict.dtd">
<html>
<head>
  <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
"/>
  <title></title>
</head>

<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
ing: optimizeLegibility;">
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
  <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
    Logo
  </div>
</div>
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
">
  <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
    <div>
  New Post Notification happened.  =

</div>
<div>
  New Post Notification happened.  =

</div>

  </div>
</div>
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
  <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
    <p style=3D"text-align: center;">
      This is the default generated layout. A privacy declaration could g=
o here.
    </p>
    <p style=3D"text-align: center; margin-bottom: 0px;">
      =C2=A9 MyCompany Pty Ltd
    </p>
    <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
      ABN 123 456 789
    </p>
  </div>
</div>
</body>
</html>=

   (0.4ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1  [["id", 1]]
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  NotifyUser::BaseNotification Load (0.7ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
   (0.1ms)  SAVEPOINT active_record_1
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.3ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]

Sent mail to user@example.com (8.4ms)
Date: Sun, 05 Jan 2014 21:50:55 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <52c9390fa861b_74b380c2bbec6444b@Tomass-MacBook-Air-11.local.mail>
Subject: Rails402: You have a new Newpostnotification notification.
Mime-Version: 1.0
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
tml4/strict.dtd">
<html>
<head>
  <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
"/>
  <title></title>
</head>

<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
ing: optimizeLegibility;">
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
  <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
    Logo
  </div>
</div>
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
">
  <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
    New Post Notification happened.
  </div>
</div>
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
  <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
    <p style=3D"text-align: center;">
      This is the default generated layout. A privacy declaration could g=
o here.
    </p>
    <p style=3D"text-align: center; margin-bottom: 0px;">
      =C2=A9 MyCompany Pty Ltd
    </p>
    <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
      ABN 123 456 789
    </p>
  </div>
</div>
</body>
</html>=

   (0.5ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.6ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  NewPostNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
   (0.5ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.2ms)  rollback transaction
   (0.4ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (3.8ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
  NotifyUser::BaseNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.4ms)
   (6.8ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (1.1ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
  NotifyUser::BaseNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 0.2ms)
   (0.5ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_read as HTML
  Parameters: {"ids"=>["1"]}
  SQL (0.3ms)  UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
  NotifyUser::BaseNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.4ms)
  NewPostNotification Load (0.3ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = ? LIMIT 1  [["id", 1]]
   (0.5ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_read as HTML
  Parameters: {"ids"=>["1"]}
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
  NotifyUser::BaseNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.4ms)
   (0.5ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.2ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
   (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
   (0.7ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.8ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.2ms)  SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)
  NotifyUser::BaseNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1  [["id", 1]]
  User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
   (0.1ms)  SAVEPOINT active_record_1
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.3ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
   (0.5ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.2ms)  SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.2ms)  SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2)
   (0.4ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1  [["id", 2]]
  User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  NotifyUser::BaseNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
   (0.1ms)  SAVEPOINT active_record_1
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.5ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.3ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2  [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1

Sent mail to user@example.com (11.6ms)
Date: Sun, 05 Jan 2014 22:08:05 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <52c93d15c2d49_76438082dbf89262c@Tomass-MacBook-Air-11.local.mail>
Subject: Rails402: You have new Newpostnotification notifications.
Mime-Version: 1.0
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
tml4/strict.dtd">
<html>
<head>
  <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
"/>
  <title></title>
</head>

<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
ing: optimizeLegibility;">
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
  <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
    Logo
  </div>
</div>
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
">
  <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
    <div>
  New Post Notification happened.  =

</div>
<div>
  New Post Notification happened.  =

</div>

  </div>
</div>
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
  <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
    <p style=3D"text-align: center;">
      This is the default generated layout. A privacy declaration could g=
o here.
    </p>
    <p style=3D"text-align: center; margin-bottom: 0px;">
      =C2=A9 MyCompany Pty Ltd
    </p>
    <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
      ABN 123 456 789
    </p>
  </div>
</div>
</body>
</html>=

   (0.4ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1  [["id", 1]]
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  NotifyUser::BaseNotification Load (0.3ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
   (0.1ms)  SAVEPOINT active_record_1
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.8ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]

Sent mail to user@example.com (10.7ms)
Date: Sun, 05 Jan 2014 22:08:05 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <52c93d15ce74f_76438082dbf892715@Tomass-MacBook-Air-11.local.mail>
Subject: Rails402: You have a new Newpostnotification notification.
Mime-Version: 1.0
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
tml4/strict.dtd">
<html>
<head>
  <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
"/>
  <title></title>
</head>

<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
ing: optimizeLegibility;">
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
  <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
    Logo
  </div>
</div>
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
">
  <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
    New Post Notification happened.
  </div>
</div>
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
  <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
    <p style=3D"text-align: center;">
      This is the default generated layout. A privacy declaration could g=
o here.
    </p>
    <p style=3D"text-align: center; margin-bottom: 0px;">
      =C2=A9 MyCompany Pty Ltd
    </p>
    <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
      ABN 123 456 789
    </p>
  </div>
</div>
</body>
</html>=

   (0.5ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  NewPostNotification Load (0.3ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
   (0.4ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.3ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (5.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
  NotifyUser::BaseNotification Load (0.5ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 1.0ms)
   (0.3ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.9ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
  NotifyUser::BaseNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.2ms)
   (0.6ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_read as HTML
  Parameters: {"ids"=>["1"]}
  SQL (0.1ms)  UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.2ms)
  NewPostNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = ? LIMIT 1  [["id", 1]]
   (0.6ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_read as HTML
  Parameters: {"ids"=>["1"]}
  SQL (0.1ms)  UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms)
   (0.4ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
   (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
   (0.4ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.2ms)  SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1  [["id", 1]]
  User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
   (0.0ms)  SAVEPOINT active_record_1
  User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
   (0.5ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.5ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.3ms)  SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2)
   (0.6ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.4ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1  [["id", 2]]
  User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
   (0.0ms)  SAVEPOINT active_record_1
  User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2  [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1

Sent mail to user@example.com (9.4ms)
Date: Mon, 06 Jan 2014 10:30:53 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <52c9eb2d5b986_7d8880c1bbe873f6@Tomass-MacBook-Air-11.local.mail>
Subject: Rails402: You have new Newpostnotification notifications.
Mime-Version: 1.0
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
tml4/strict.dtd">
<html>
<head>
  <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
"/>
  <title></title>
</head>

<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
ing: optimizeLegibility;">
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
  <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
    Logo
  </div>
</div>
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
">
  <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
    <div>
  New Post Notification happened.  =

</div>
<div>
  New Post Notification happened.  =

</div>

  </div>
</div>
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
  <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
    <p style=3D"text-align: center;">
      This is the default generated layout. A privacy declaration could g=
o here.
    </p>
    <p style=3D"text-align: center; margin-bottom: 0px;">
      =C2=A9 MyCompany Pty Ltd
    </p>
    <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
      ABN 123 456 789
    </p>
  </div>
</div>
</body>
</html>=

   (0.4ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1  [["id", 1]]
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
   (0.0ms)  SAVEPOINT active_record_1
  User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (0.1ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  NotifyUser::BaseNotification Load (0.1ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]

Sent mail to user@example.com (6.5ms)
Date: Mon, 06 Jan 2014 10:30:53 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <52c9eb2d62c1f_7d8880c1bbe874a9@Tomass-MacBook-Air-11.local.mail>
Subject: Rails402: You have a new Newpostnotification notification.
Mime-Version: 1.0
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
tml4/strict.dtd">
<html>
<head>
  <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
"/>
  <title></title>
</head>

<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
ing: optimizeLegibility;">
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
  <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
    Logo
  </div>
</div>
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
">
  <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
    New Post Notification happened.
  </div>
</div>
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
  <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
    <p style=3D"text-align: center;">
      This is the default generated layout. A privacy declaration could g=
o here.
    </p>
    <p style=3D"text-align: center; margin-bottom: 0px;">
      =C2=A9 MyCompany Pty Ltd
    </p>
    <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
      ABN 123 456 789
    </p>
  </div>
</div>
</body>
</html>=

   (0.5ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)  [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.3ms)  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.0ms)  SAVEPOINT active_record_1
  SQL (0.1ms)  UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
   (0.0ms)  RELEASE SAVEPOINT active_record_1
   (0.1ms)  SAVEPOINT active_record_1
  SQL (0.2ms)  UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1  [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
   (0.1ms)  RELEASE SAVEPOINT active_record_1
  NewPostNotification Load (0.2ms)  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
   (0.5ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.1ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.0ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.1ms)  rollback transaction
   (0.0ms)  begin transaction
   (0.1ms)  rollback transaction