espinita 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7183b60c3fd3a7d44f78dcb555200525c5dd8030
4
- data.tar.gz: b9bd2cf0e545a2f111082d14a094691b02aa9bca
3
+ metadata.gz: 9782325a4f946cfa5f1adf2a2d31861abedb66b2
4
+ data.tar.gz: 38c99e3abdf1217de822731401fa03ec5dba1c6a
5
5
  SHA512:
6
- metadata.gz: bfb5056db551350c66078a54de5e644da72d58730cf6ebe06ce7aee533e5fdb76022548737755579c6edbc25c27e1c6a54325d3d9d60c2d82ad30ad021b2391b
7
- data.tar.gz: 6899fc45eaf3413e0fd068443a20f2e4d2ac185ed535b3ef449a11ed1241fb742a6c36cbe0c1a0e49acdd704a41d4f28ae50acf7e7d491ba123fefccc8349e56
6
+ metadata.gz: ac32dde827cb37c8f0af1f8c4b9aea2545eaef0cac3153b5f910b0fa1f83c5f50b2cda6b592d7dce69a8e857139dc783556c5cb7a1e88ae07acc1f27b0065006
7
+ data.tar.gz: 554967e32573740dc6ab66aa9185473f22b090219d14ce383ed387876d0935c245b10ef3e4f7c432d675c03d42ccb5d7f53f23e7a7e16ecfa48961ca9634e741
@@ -4,9 +4,7 @@ module Espinita
4
4
  include Espinita::AuditorBehavior
5
5
 
6
6
  included do
7
- has_many :audits, :as => :auditable, :class_name => Espinita::Audit.name
8
- #attr_accessor :audited_user, :audited_ip
9
- accepts_nested_attributes_for :audits
7
+
10
8
  end
11
9
 
12
10
  module ClassMethods
@@ -34,6 +34,10 @@ module Espinita
34
34
  self.excluded_cols = (@@default_excluded) + options[:except]
35
35
  end
36
36
 
37
+ has_many :audits, :as => :auditable, :class_name => Espinita::Audit.name
38
+ #attr_accessor :audited_user, :audited_ip
39
+ accepts_nested_attributes_for :audits
40
+
37
41
  end
38
42
 
39
43
  def permited_columns
@@ -11,6 +11,7 @@ module Espinita
11
11
 
12
12
  initializer "include Auditor request into action controller" do |app|
13
13
  ActionController::Base.send(:include, Espinita::AuditorRequest)
14
+ ActiveRecord::Base.send(:include, Espinita::Auditor)
14
15
  end
15
16
 
16
17
 
@@ -1,3 +1,3 @@
1
1
  module Espinita
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -17266,3 +17266,223 @@ Completed 200 OK in 74ms (Views: 4.4ms | ActiveRecord: 1.2ms)
17266
17266
   (0.1ms) SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 8], ["auditable_type", "GeneralModel"]]
17267
17267
  Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 8], ["auditable_type", "GeneralModel"]]
17268
17268
  Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 8], ["auditable_type", "GeneralModel"]]
17269
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "last_name" varchar(255), "email" varchar(255), "created_at" datetime, "updated_at" datetime) 
17270
+  (0.1ms) CREATE TABLE "general_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "name" varchar(255), "settings" text, "position" integer, "created_at" datetime, "updated_at" datetime)
17271
+  (0.1ms) CREATE INDEX "index_general_models_on_user_id" ON "general_models" ("user_id")
17272
+  (0.1ms) CREATE TABLE "espinita_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "auditable_id" integer, "auditable_type" varchar(255), "user_id" integer, "user_type" varchar(255), "audited_changes" text, "comment" varchar(255), "version" integer, "action" varchar(255), "remote_address" varchar(255), "created_at" datetime, "updated_at" datetime)
17273
+  (0.1ms) CREATE INDEX "index_espinita_audits_on_auditable_id_and_auditable_type" ON "espinita_audits" ("auditable_id", "auditable_type")
17274
+  (0.1ms) CREATE INDEX "index_espinita_audits_on_user_id_and_user_type" ON "espinita_audits" ("user_id", "user_type")
17275
+  (0.1ms) begin transaction
17276
+ SQL (2.4ms) INSERT INTO "users" ("created_at", "email", "last_name", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 04 Nov 2013 15:26:50 UTC +00:00], ["email", "john@afferson.com"], ["last_name", "Afferson"], ["name", "John"], ["updated_at", Mon, 04 Nov 2013 15:26:50 UTC +00:00]]
17277
+  (0.1ms) commit transaction
17278
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits"
17279
+ Processing by AuditsController#audit as HTML
17280
+  (0.1ms) begin transaction
17281
+ SQL (0.3ms) INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 04 Nov 2013 15:26:50 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Mon, 04 Nov 2013 15:26:50 UTC +00:00]]
17282
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 1 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17283
+ SQL (0.4ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 1], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- \n- MyString\nsettings:\n- \n- MyText\nposition:\n- \n- 1\ncreated_at:\n- \n- 2013-11-04 15:26:50.811701000 Z\nupdated_at:\n- \n- 2013-11-04 15:26:50.811701000 Z\nid:\n- \n- 1\n"], ["created_at", Mon, 04 Nov 2013 15:26:50 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:26:50 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 1]]
17284
+ SQL (0.3ms) UPDATE "espinita_audits" SET "updated_at" = ?, "audited_changes" = ? WHERE "espinita_audits"."id" = 1 [["updated_at", Mon, 04 Nov 2013 15:26:50 UTC +00:00], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- \n- MyString\nsettings:\n- \n- MyText\nposition:\n- \n- 1\ncreated_at:\n- \n- 2013-11-04 15:26:50.000000000 Z\nupdated_at:\n- \n- 2013-11-04 15:26:50.000000000 Z\nid:\n- \n- 1\n"]]
17285
+  (0.1ms) commit transaction
17286
+ Rendered text template (0.0ms)
17287
+ Completed 200 OK in 136ms (Views: 35.2ms | ActiveRecord: 1.5ms)
17288
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits"
17289
+ Espinita::Audit Load (0.2ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 1], ["auditable_type", "GeneralModel"]]
17290
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
17291
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 1], ["auditable_type", "GeneralModel"]]
17292
+  (0.1ms) begin transaction
17293
+ SQL (0.3ms) INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 04 Nov 2013 15:26:50 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Mon, 04 Nov 2013 15:26:50 UTC +00:00]]
17294
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 2 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17295
+ SQL (0.2ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 2], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- \n- MyString\nsettings:\n- \n- MyText\nposition:\n- \n- 1\ncreated_at:\n- \n- 2013-11-04 15:26:50.983675000 Z\nupdated_at:\n- \n- 2013-11-04 15:26:50.983675000 Z\nid:\n- \n- 2\n"], ["created_at", Mon, 04 Nov 2013 15:26:50 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:26:50 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 1]]
17296
+  (0.1ms) commit transaction
17297
+  (0.1ms) begin transaction
17298
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 2 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17299
+ SQL (0.2ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 2], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- MyString\n- Foo\nupdated_at:\n- 2013-11-04 15:26:50.983675000 Z\n- 2013-11-04 15:26:50.993965000 Z\n"], ["created_at", Mon, 04 Nov 2013 15:26:50 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:26:50 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 2]]
17300
+ SQL (0.1ms) UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 2 [["name", "Foo"], ["updated_at", Mon, 04 Nov 2013 15:26:50 UTC +00:00]]
17301
+  (0.1ms) commit transaction
17302
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 2], ["auditable_type", "GeneralModel"]]
17303
+  (0.1ms) begin transaction
17304
+ SQL (0.2ms) INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00]]
17305
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 3 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17306
+ SQL (0.2ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 3], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- \n- MyString\nsettings:\n- \n- MyText\nposition:\n- \n- 1\ncreated_at:\n- \n- 2013-11-04 15:26:51.001249000 Z\nupdated_at:\n- \n- 2013-11-04 15:26:51.001249000 Z\nid:\n- \n- 3\n"], ["created_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 1]]
17307
+  (0.1ms) commit transaction
17308
+  (0.1ms) begin transaction
17309
+ SQL (0.2ms) UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 3 [["name", "Foo"], ["updated_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00]]
17310
+  (0.0ms) commit transaction
17311
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 3], ["auditable_type", "GeneralModel"]]
17312
+  (0.1ms) begin transaction
17313
+ SQL (0.3ms) INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00]]
17314
+  (0.2ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 4 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17315
+ SQL (0.3ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 4], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- \n- MyString\nsettings:\n- \n- MyText\nposition:\n- \n- 1\ncreated_at:\n- \n- 2013-11-04 15:26:51.013533000 Z\nupdated_at:\n- \n- 2013-11-04 15:26:51.013533000 Z\nid:\n- \n- 4\n"], ["created_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 1]]
17316
+  (0.1ms) commit transaction
17317
+  (0.1ms) begin transaction
17318
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 4 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17319
+ SQL (0.3ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 4], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- MyString\n- Foo\nupdated_at:\n- 2013-11-04 15:26:51.013533000 Z\n- 2013-11-04 15:26:51.025703000 Z\n"], ["comment", "Some comment"], ["created_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 2]]
17320
+ SQL (0.1ms) UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 4 [["name", "Foo"], ["updated_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00]]
17321
+  (0.1ms) commit transaction
17322
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 4], ["auditable_type", "GeneralModel"]]
17323
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 4], ["auditable_type", "GeneralModel"]]
17324
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 4], ["auditable_type", "GeneralModel"]]
17325
+  (0.1ms) begin transaction
17326
+ SQL (0.2ms) INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00]]
17327
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 5 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17328
+ SQL (0.2ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 5], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- \n- MyString\nsettings:\n- \n- MyText\nposition:\n- \n- 1\ncreated_at:\n- \n- 2013-11-04 15:26:51.035082000 Z\nupdated_at:\n- \n- 2013-11-04 15:26:51.035082000 Z\nid:\n- \n- 5\n"], ["created_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 1]]
17329
+  (0.1ms) commit transaction
17330
+  (0.1ms) begin transaction
17331
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 5 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17332
+ SQL (0.2ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 5], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- MyString\n- Foo\nupdated_at:\n- 2013-11-04 15:26:51.035082000 Z\n- 2013-11-04 15:26:51.043756000 Z\n"], ["comment", "Some comment"], ["created_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 2]]
17333
+ SQL (0.1ms) UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 5 [["name", "Foo"], ["updated_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00]]
17334
+  (0.1ms) commit transaction
17335
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 5], ["auditable_type", "GeneralModel"]]
17336
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 5], ["auditable_type", "GeneralModel"]]
17337
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 5], ["auditable_type", "GeneralModel"]]
17338
+  (0.1ms) begin transaction
17339
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "last_name", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["email", "john@afferson.com"], ["last_name", "Afferson"], ["name", "John"], ["updated_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00]]
17340
+  (0.1ms) commit transaction
17341
+  (0.1ms) begin transaction
17342
+ SQL (0.2ms) INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00]]
17343
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 6 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17344
+ SQL (0.2ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 6], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- \n- MyString\nsettings:\n- \n- MyText\nposition:\n- \n- 1\ncreated_at:\n- \n- 2013-11-04 15:26:51.053713000 Z\nupdated_at:\n- \n- 2013-11-04 15:26:51.053713000 Z\nid:\n- \n- 6\n"], ["created_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
17345
+  (0.1ms) commit transaction
17346
+  (0.1ms) begin transaction
17347
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 6 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17348
+ SQL (0.2ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 6], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- MyString\n- Foo\nupdated_at:\n- 2013-11-04 15:26:51.053713000 Z\n- 2013-11-04 15:26:51.062442000 Z\n"], ["comment", "Some comment"], ["created_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 2]]
17349
+ SQL (0.1ms) UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 6 [["name", "Foo"], ["updated_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00]]
17350
+  (0.1ms) commit transaction
17351
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 6], ["auditable_type", "GeneralModel"]]
17352
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]
17353
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 6], ["auditable_type", "GeneralModel"]]
17354
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]
17355
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 6], ["auditable_type", "GeneralModel"]]
17356
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]
17357
+  (0.1ms) begin transaction
17358
+ SQL (0.2ms) INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00]]
17359
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 7 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17360
+ SQL (0.2ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 7], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- \n- MyString\nsettings:\n- \n- MyText\nposition:\n- \n- 1\ncreated_at:\n- \n- 2013-11-04 15:26:51.075682000 Z\nupdated_at:\n- \n- 2013-11-04 15:26:51.075682000 Z\nid:\n- \n- 7\n"], ["created_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
17361
+  (0.1ms) commit transaction
17362
+  (0.0ms) begin transaction
17363
+ SQL (0.2ms) UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 7 [["name", "Foo"], ["updated_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00]]
17364
+  (0.1ms) commit transaction
17365
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 7], ["auditable_type", "GeneralModel"]]
17366
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 7], ["auditable_type", "GeneralModel"]]
17367
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 7], ["auditable_type", "GeneralModel"]]
17368
+  (0.1ms) begin transaction
17369
+ SQL (0.2ms) INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00]]
17370
+  (0.1ms) commit transaction
17371
+  (0.0ms) begin transaction
17372
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 8 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17373
+ SQL (0.3ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 8], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- MyString\n- Foo\nupdated_at:\n- 2013-11-04 15:26:51.090614000 Z\n- 2013-11-04 15:26:51.092280000 Z\n"], ["comment", "Some comment"], ["created_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
17374
+ SQL (0.1ms) UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 8 [["name", "Foo"], ["updated_at", Mon, 04 Nov 2013 15:26:51 UTC +00:00]]
17375
+  (0.1ms) commit transaction
17376
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 8], ["auditable_type", "GeneralModel"]]
17377
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 8], ["auditable_type", "GeneralModel"]]
17378
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 8], ["auditable_type", "GeneralModel"]]
17379
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "last_name" varchar(255), "email" varchar(255), "created_at" datetime, "updated_at" datetime) 
17380
+  (0.1ms) CREATE TABLE "general_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "name" varchar(255), "settings" text, "position" integer, "created_at" datetime, "updated_at" datetime)
17381
+  (0.1ms) CREATE INDEX "index_general_models_on_user_id" ON "general_models" ("user_id")
17382
+  (0.1ms) CREATE TABLE "espinita_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "auditable_id" integer, "auditable_type" varchar(255), "user_id" integer, "user_type" varchar(255), "audited_changes" text, "comment" varchar(255), "version" integer, "action" varchar(255), "remote_address" varchar(255), "created_at" datetime, "updated_at" datetime)
17383
+  (0.1ms) CREATE INDEX "index_espinita_audits_on_auditable_id_and_auditable_type" ON "espinita_audits" ("auditable_id", "auditable_type")
17384
+  (0.1ms) CREATE INDEX "index_espinita_audits_on_user_id_and_user_type" ON "espinita_audits" ("user_id", "user_type")
17385
+  (0.1ms) begin transaction
17386
+ SQL (2.3ms) INSERT INTO "users" ("created_at", "email", "last_name", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["email", "john@afferson.com"], ["last_name", "Afferson"], ["name", "John"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00]]
17387
+  (0.1ms) commit transaction
17388
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits"
17389
+ Processing by AuditsController#audit as HTML
17390
+  (0.1ms) begin transaction
17391
+ SQL (0.3ms) INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00]]
17392
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 1 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17393
+ SQL (0.3ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 1], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- \n- MyString\nsettings:\n- \n- MyText\nposition:\n- \n- 1\ncreated_at:\n- \n- 2013-11-04 15:27:49.691464000 Z\nupdated_at:\n- \n- 2013-11-04 15:27:49.691464000 Z\nid:\n- \n- 1\n"], ["created_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 1]]
17394
+ SQL (0.2ms) UPDATE "espinita_audits" SET "updated_at" = ?, "audited_changes" = ? WHERE "espinita_audits"."id" = 1 [["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- \n- MyString\nsettings:\n- \n- MyText\nposition:\n- \n- 1\ncreated_at:\n- \n- 2013-11-04 15:27:49.000000000 Z\nupdated_at:\n- \n- 2013-11-04 15:27:49.000000000 Z\nid:\n- \n- 1\n"]]
17395
+  (0.1ms) commit transaction
17396
+ Rendered text template (0.0ms)
17397
+ Completed 200 OK in 76ms (Views: 4.3ms | ActiveRecord: 1.4ms)
17398
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits"
17399
+ Espinita::Audit Load (0.2ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 1], ["auditable_type", "GeneralModel"]]
17400
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
17401
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 1], ["auditable_type", "GeneralModel"]]
17402
+  (0.1ms) begin transaction
17403
+ SQL (0.2ms) INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00]]
17404
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 2 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17405
+ SQL (0.2ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 2], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- \n- MyString\nsettings:\n- \n- MyText\nposition:\n- \n- 1\ncreated_at:\n- \n- 2013-11-04 15:27:49.772013000 Z\nupdated_at:\n- \n- 2013-11-04 15:27:49.772013000 Z\nid:\n- \n- 2\n"], ["created_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 1]]
17406
+  (0.1ms) commit transaction
17407
+  (0.1ms) begin transaction
17408
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 2 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17409
+ SQL (0.2ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 2], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- MyString\n- Foo\nupdated_at:\n- 2013-11-04 15:27:49.772013000 Z\n- 2013-11-04 15:27:49.780413000 Z\n"], ["created_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 2]]
17410
+ SQL (0.1ms) UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 2 [["name", "Foo"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00]]
17411
+  (0.1ms) commit transaction
17412
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 2], ["auditable_type", "GeneralModel"]]
17413
+  (0.1ms) begin transaction
17414
+ SQL (0.2ms) INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00]]
17415
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 3 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17416
+ SQL (0.2ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 3], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- \n- MyString\nsettings:\n- \n- MyText\nposition:\n- \n- 1\ncreated_at:\n- \n- 2013-11-04 15:27:49.787465000 Z\nupdated_at:\n- \n- 2013-11-04 15:27:49.787465000 Z\nid:\n- \n- 3\n"], ["created_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 1]]
17417
+  (0.1ms) commit transaction
17418
+  (0.1ms) begin transaction
17419
+ SQL (0.2ms) UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 3 [["name", "Foo"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00]]
17420
+  (0.0ms) commit transaction
17421
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 3], ["auditable_type", "GeneralModel"]]
17422
+  (0.1ms) begin transaction
17423
+ SQL (0.2ms) INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00]]
17424
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 4 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17425
+ SQL (0.2ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 4], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- \n- MyString\nsettings:\n- \n- MyText\nposition:\n- \n- 1\ncreated_at:\n- \n- 2013-11-04 15:27:49.799778000 Z\nupdated_at:\n- \n- 2013-11-04 15:27:49.799778000 Z\nid:\n- \n- 4\n"], ["created_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 1]]
17426
+  (0.1ms) commit transaction
17427
+  (0.1ms) begin transaction
17428
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 4 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17429
+ SQL (0.3ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 4], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- MyString\n- Foo\nupdated_at:\n- 2013-11-04 15:27:49.799778000 Z\n- 2013-11-04 15:27:49.808447000 Z\n"], ["comment", "Some comment"], ["created_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 2]]
17430
+ SQL (0.5ms) UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 4 [["name", "Foo"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00]]
17431
+  (0.1ms) commit transaction
17432
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 4], ["auditable_type", "GeneralModel"]]
17433
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 4], ["auditable_type", "GeneralModel"]]
17434
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 4], ["auditable_type", "GeneralModel"]]
17435
+  (0.1ms) begin transaction
17436
+ SQL (0.2ms) INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00]]
17437
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 5 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17438
+ SQL (0.2ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 5], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- \n- MyString\nsettings:\n- \n- MyText\nposition:\n- \n- 1\ncreated_at:\n- \n- 2013-11-04 15:27:49.818700000 Z\nupdated_at:\n- \n- 2013-11-04 15:27:49.818700000 Z\nid:\n- \n- 5\n"], ["created_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 1]]
17439
+  (0.1ms) commit transaction
17440
+  (0.1ms) begin transaction
17441
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 5 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17442
+ SQL (0.2ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 5], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- MyString\n- Foo\nupdated_at:\n- 2013-11-04 15:27:49.818700000 Z\n- 2013-11-04 15:27:49.827398000 Z\n"], ["comment", "Some comment"], ["created_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 2]]
17443
+ SQL (0.1ms) UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 5 [["name", "Foo"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00]]
17444
+  (0.1ms) commit transaction
17445
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 5], ["auditable_type", "GeneralModel"]]
17446
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 5], ["auditable_type", "GeneralModel"]]
17447
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 5], ["auditable_type", "GeneralModel"]]
17448
+  (0.1ms) begin transaction
17449
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "last_name", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["email", "john@afferson.com"], ["last_name", "Afferson"], ["name", "John"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00]]
17450
+  (0.1ms) commit transaction
17451
+  (0.0ms) begin transaction
17452
+ SQL (0.2ms) INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00]]
17453
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 6 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17454
+ SQL (0.2ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 6], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- \n- MyString\nsettings:\n- \n- MyText\nposition:\n- \n- 1\ncreated_at:\n- \n- 2013-11-04 15:27:49.837382000 Z\nupdated_at:\n- \n- 2013-11-04 15:27:49.837382000 Z\nid:\n- \n- 6\n"], ["created_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
17455
+  (0.1ms) commit transaction
17456
+  (0.1ms) begin transaction
17457
+  (0.2ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 6 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17458
+ SQL (0.2ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 6], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- MyString\n- Foo\nupdated_at:\n- 2013-11-04 15:27:49.837382000 Z\n- 2013-11-04 15:27:49.846208000 Z\n"], ["comment", "Some comment"], ["created_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 2]]
17459
+ SQL (0.1ms) UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 6 [["name", "Foo"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00]]
17460
+  (0.1ms) commit transaction
17461
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 6], ["auditable_type", "GeneralModel"]]
17462
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]
17463
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 6], ["auditable_type", "GeneralModel"]]
17464
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]
17465
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 6], ["auditable_type", "GeneralModel"]]
17466
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]]
17467
+  (0.1ms) begin transaction
17468
+ SQL (0.2ms) INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00]]
17469
+  (0.1ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 7 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17470
+ SQL (0.2ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 7], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- \n- MyString\nsettings:\n- \n- MyText\nposition:\n- \n- 1\ncreated_at:\n- \n- 2013-11-04 15:27:49.859345000 Z\nupdated_at:\n- \n- 2013-11-04 15:27:49.859345000 Z\nid:\n- \n- 7\n"], ["created_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
17471
+  (0.1ms) commit transaction
17472
+  (0.0ms) begin transaction
17473
+ SQL (0.2ms) UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 7 [["name", "Foo"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00]]
17474
+  (0.1ms) commit transaction
17475
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 7], ["auditable_type", "GeneralModel"]]
17476
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 7], ["auditable_type", "GeneralModel"]]
17477
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 7], ["auditable_type", "GeneralModel"]]
17478
+  (0.1ms) begin transaction
17479
+ SQL (0.3ms) INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00]]
17480
+  (0.1ms) commit transaction
17481
+  (0.1ms) begin transaction
17482
+  (0.2ms) SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 8 AND "espinita_audits"."auditable_type" = 'GeneralModel'
17483
+ SQL (0.4ms) INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 8], ["auditable_type", "GeneralModel"], ["audited_changes", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nname:\n- MyString\n- Foo\nupdated_at:\n- 2013-11-04 15:27:49.873835000 Z\n- 2013-11-04 15:27:49.875777000 Z\n"], ["comment", "Some comment"], ["created_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
17484
+ SQL (0.2ms) UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 8 [["name", "Foo"], ["updated_at", Mon, 04 Nov 2013 15:27:49 UTC +00:00]]
17485
+  (0.1ms) commit transaction
17486
+  (0.1ms) SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 8], ["auditable_type", "GeneralModel"]]
17487
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 8], ["auditable_type", "GeneralModel"]]
17488
+ Espinita::Audit Load (0.1ms) SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 8], ["auditable_type", "GeneralModel"]]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: espinita
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Michelson