adeia 0.6.0 → 0.6.1

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: e4713bd4c2a2558fb41bd87c72b90592828d8b99
4
- data.tar.gz: 4e8dcd2e84270975993bdfb21a6549fa449d1e72
3
+ metadata.gz: 338d4525e3d055c6f0c317d489e27ab93e9f8c15
4
+ data.tar.gz: 41a9b61951831ed849f22d3158c89768439c28d5
5
5
  SHA512:
6
- metadata.gz: a0b77de5885973917a44cb6df85ad284be5b93c913d4b686d6cbfc3e8ce844deac2fb61df75acce959a190edb885a4341087349431e6bf853160ac1a2f68b5bb
7
- data.tar.gz: 4b1efb3591b5a6dc36c9b80412baa7ce39bdc12c97a7d77a9beb0e769cedc4dc418191a6578e3a445ccf36d8519e3ebd402e0f4ac4a1e06bd6991ab691d91602
6
+ metadata.gz: d70bd99393732dae7e0b9d416688618fbd76cb90fd96a8aae10c9830eb4c146cbf2cd2cfd25257ea135f1ed67928325b20653dda5bf2a1154c61d130923e3d61
7
+ data.tar.gz: 8207759e526fffbe4b95fdf219368a27f23d432169959a64c5a8902cdc8e2e9997f267189cad6425cdc13c776df29500325ee1473e419a76f3f76a7eb991b479
@@ -40,7 +40,7 @@ module Adeia
40
40
  end
41
41
 
42
42
  def require_login!
43
- raise LoginRequired unless signed_id?
43
+ raise LoginRequired unless signed_in?
44
44
  end
45
45
 
46
46
  def can?(action, controller=nil, resource=nil)
@@ -22,8 +22,8 @@ module Adeia
22
22
  end
23
23
  end
24
24
 
25
- def self.require_login
26
- controller.require_login!(controller)
25
+ def self.require_login(controller)
26
+ controller.require_login!
27
27
  end
28
28
 
29
29
  def initialize(controller, **args)
data/lib/adeia/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Adeia
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
@@ -1,76 +1,77 @@
1
1
  require "rails_helper"
2
2
 
3
3
  describe ArticlesController, :type => :controller do
4
- before(:each) do
5
- @user = User.create!(name: "admin", password: "12341", password_confirmation: "12341")
6
- sign_in @user
7
- end
8
-
9
- describe "GET #index" do
10
-
11
- describe "response" do
12
- before(:each) { create(:permission, element_name: "articles", read_right: true, owner: @user) }
13
-
14
- it "responds successfully" do
15
- get :index
16
- expect(response).to be_success
17
- end
18
-
19
- it "loads the records" do
20
- get :index
21
- expect(assigns(:articles)).not_to be_nil
22
- end
23
-
4
+ context "with a logged in user" do
5
+ before(:each) do
6
+ @user = User.create!(name: "admin", password: "12341", password_confirmation: "12341")
7
+ sign_in @user
24
8
  end
25
9
 
26
- describe "records loading" do
10
+ describe "GET #index" do
11
+
12
+ describe "response" do
13
+ before(:each) { create(:permission, element_name: "articles", read_right: true, owner: @user) }
27
14
 
28
- context "with an 'all_entries' permission" do
15
+ it "responds successfully" do
16
+ get :index
17
+ expect(response).to be_success
18
+ end
29
19
 
30
- it "loads all the entries" do
31
- create(:permission, element_name: "articles", read_right: true, owner: @user)
32
- create_list(:article, 5)
20
+ it "loads the records" do
33
21
  get :index
34
- expect(assigns(:articles)).to eq Article.all
22
+ expect(assigns(:articles)).not_to be_nil
35
23
  end
36
24
 
37
25
  end
38
26
 
39
- context "with an 'on_ownerships' permission" do
40
- before(:each) do
41
- create(:permission, element_name: "articles", type_name: "on_ownerships", read_right: true, owner: @user)
42
- @own_articles = create_list(:article, 5, user: @user)
43
- create_list(:article, 5)
44
- end
27
+ describe "records loading" do
28
+
29
+ context "with an 'all_entries' permission" do
30
+
31
+ it "loads all the entries" do
32
+ create(:permission, element_name: "articles", read_right: true, owner: @user)
33
+ create_list(:article, 5)
34
+ get :index
35
+ expect(assigns(:articles)).to eq Article.all
36
+ end
45
37
 
46
- it "loads the owned articles" do
47
- get :index
48
- expect(assigns(:articles)).to eq @own_articles
49
38
  end
50
39
 
51
- it "loads the owned articles and also the specific ones" do
52
- specific_article = create(:article)
53
- create(:permission, element_name: "articles", type_name: "on_entry", resource_id: specific_article.id, read_right: true, owner: @user)
54
- get :index
55
- expect(assigns(:articles)).to match_array(@own_articles << specific_article)
40
+ context "with an 'on_ownerships' permission" do
41
+ before(:each) do
42
+ create(:permission, element_name: "articles", type_name: "on_ownerships", read_right: true, owner: @user)
43
+ @own_articles = create_list(:article, 5, user: @user)
44
+ create_list(:article, 5)
45
+ end
46
+
47
+ it "loads the owned articles" do
48
+ get :index
49
+ expect(assigns(:articles)).to eq @own_articles
50
+ end
51
+
52
+ it "loads the owned articles and also the specific ones" do
53
+ specific_article = create(:article)
54
+ create(:permission, element_name: "articles", type_name: "on_entry", resource_id: specific_article.id, read_right: true, owner: @user)
55
+ get :index
56
+ expect(assigns(:articles)).to match_array(@own_articles << specific_article)
57
+ end
58
+
56
59
  end
57
60
 
58
- end
61
+ context "with an 'on_entry' permission" do
59
62
 
60
- context "with an 'on_entry' permission" do
63
+ it "loads the specific articles" do
64
+ first_article = create(:article)
65
+ second_article = create(:article)
66
+ create_list(:article, 5)
67
+ create(:permission, element_name: "articles", type_name: "on_entry", resource_id: first_article.id, read_right: true, owner: @user)
68
+ create(:permission, element_name: "articles", type_name: "on_entry", resource_id: second_article.id, read_right: true, owner: @user)
69
+ get :index
70
+ expect(assigns(:articles)).to match_array [first_article, second_article]
71
+ end
61
72
 
62
- it "loads the specific articles" do
63
- first_article = create(:article)
64
- second_article = create(:article)
65
- create_list(:article, 5)
66
- create(:permission, element_name: "articles", type_name: "on_entry", resource_id: first_article.id, read_right: true, owner: @user)
67
- create(:permission, element_name: "articles", type_name: "on_entry", resource_id: second_article.id, read_right: true, owner: @user)
68
- get :index
69
- expect(assigns(:articles)).to match_array [first_article, second_article]
70
73
  end
71
-
72
74
  end
73
-
74
75
  end
75
76
 
76
77
  describe "GET #show" do
@@ -119,5 +120,38 @@ describe ArticlesController, :type => :controller do
119
120
 
120
121
  end
121
122
 
123
+ describe "POST #create" do
124
+
125
+ it "responds successfully" do
126
+ expect{ post :create, article: attributes_for(:article) }.not_to raise_error
127
+ end
128
+
129
+ end
130
+
131
+ describe "PATCH #update" do
132
+
133
+ it "responds successfully" do
134
+ article = create(:article)
135
+ expect{ patch :update, id: article.id, article: attributes_for(:article) }.not_to raise_error
136
+ end
137
+
138
+ end
139
+ end
140
+
141
+ describe "POST #create" do
142
+
143
+ it "required to be logged in" do
144
+ expect { post :create, article: attributes_for(:article) }.to raise_error Adeia::LoginRequired
145
+ end
146
+
147
+ end
148
+
149
+ describe "PATCH #update" do
150
+
151
+ it "required to be logged in" do
152
+ article = create(:article)
153
+ expect { patch :update, id: article.id, article: attributes_for(:article) }.to raise_error Adeia::LoginRequired
154
+ end
155
+
122
156
  end
123
157
  end
@@ -1,5 +1,6 @@
1
1
  class ArticlesController < ApplicationController
2
2
  load_and_authorize only: [:edit]
3
+ require_login only: [:update]
3
4
 
4
5
  def index
5
6
  authorize_and_load_records!
@@ -18,6 +19,7 @@ class ArticlesController < ApplicationController
18
19
  end
19
20
 
20
21
  def create
22
+ require_login!
21
23
  @article = Article.new(article_params)
22
24
  @article.user = current_user
23
25
  if @article.save
@@ -28,6 +30,7 @@ class ArticlesController < ApplicationController
28
30
  end
29
31
 
30
32
  def update
33
+ @article = Article.find(params[:id])
31
34
  if @article.update(article_params)
32
35
  redirect_to @article, notice: 'Article was successfully updated.'
33
36
  else
@@ -36,6 +39,7 @@ class ArticlesController < ApplicationController
36
39
  end
37
40
 
38
41
  def destroy
42
+ @article = Article.find(params[:id])
39
43
  @article.destroy
40
44
  redirect_to articles_url, notice: 'Article was successfully destroyed.'
41
45
  end
@@ -59299,3 +59299,376 @@ Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.5ms)
59299
59299
  SQL (0.3ms) INSERT INTO "adeia_groups" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "admin"], ["created_at", "2015-10-30 23:18:00.248088"], ["updated_at", "2015-10-30 23:18:00.248088"]]
59300
59300
   (0.0ms) RELEASE SAVEPOINT active_record_1
59301
59301
   (0.8ms) rollback transaction
59302
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
59303
+  (0.1ms) begin transaction
59304
+  (0.1ms) SAVEPOINT active_record_1
59305
+ SQL (1.6ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$HPc4XMj029rO3C.JgEZrD.yNQUMOnQ7EZCpBCPClmQ3pAVovruPmW"], ["remember_token", "nXJtI2ASTgvvbmpxUNeQgA"], ["created_at", "2015-10-31 15:02:19.190140"], ["updated_at", "2015-10-31 15:02:19.190140"]]
59306
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59307
+ Processing by ArticlesController#create as HTML
59308
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
59309
+  (1.5ms) rollback transaction
59310
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
59311
+  (0.1ms) begin transaction
59312
+  (0.4ms) SAVEPOINT active_record_1
59313
+ SQL (1.1ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$dz/GnobbNyaB/F3NG5p5tOg53iVvbKB.JhdBLQRd8ExXl5FuuiCI."], ["remember_token", "QwRQJDdYh6AjfWqmbpHvXA"], ["created_at", "2015-10-31 15:04:10.819682"], ["updated_at", "2015-10-31 15:04:10.819682"]]
59314
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59315
+ Processing by ArticlesController#create as HTML
59316
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "QwRQJDdYh6AjfWqmbpHvXA"]]
59317
+ Completed 400 Bad Request in 18ms (ActiveRecord: 0.2ms)
59318
+  (0.6ms) rollback transaction
59319
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
59320
+  (0.2ms) begin transaction
59321
+  (0.5ms) SAVEPOINT active_record_1
59322
+ SQL (1.2ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$hwE7lTUTi5yUJYDxsQ.tKeytEDmQ/l2SQ03cZ.PqMZPNZGh4jPBPq"], ["remember_token", "NPR6bHqI3HoPFvgRUkPOQQ"], ["created_at", "2015-10-31 15:04:39.207243"], ["updated_at", "2015-10-31 15:04:39.207243"]]
59323
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59324
+ Processing by ArticlesController#create as HTML
59325
+ Parameters: {"article"=>{}}
59326
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "NPR6bHqI3HoPFvgRUkPOQQ"]]
59327
+ Completed 400 Bad Request in 19ms (ActiveRecord: 0.2ms)
59328
+  (0.6ms) rollback transaction
59329
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
59330
+  (0.1ms) begin transaction
59331
+  (0.1ms) SAVEPOINT active_record_1
59332
+ SQL (1.1ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$dQDHjfRQdpgcXi1i/GyGkuB.x8LbMCQj9jkLixaeNAg6LcN/RJx1O"], ["remember_token", "uac3rzL4WzPmr5WSIyKJ7Q"], ["created_at", "2015-10-31 15:05:19.715984"], ["updated_at", "2015-10-31 15:05:19.715984"]]
59333
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59334
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59335
+  (0.1ms) SAVEPOINT active_record_1
59336
+ SQL (0.5ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$77rBQFhuuzfG.p0dNVy.2eURWxDMIZa4v31gaUrVS9Yg1OFCwxydG"], ["remember_token", "K6Jq6hUfe4upvd9tXkZSuQ"], ["created_at", "2015-10-31 15:05:19.747091"], ["updated_at", "2015-10-31 15:05:19.747091"]]
59337
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59338
+ Processing by ArticlesController#create as HTML
59339
+ Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}}
59340
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "uac3rzL4WzPmr5WSIyKJ7Q"]]
59341
+ Unpermitted parameter: user
59342
+  (0.1ms) SAVEPOINT active_record_1
59343
+ SQL (1.0ms) INSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 1], ["created_at", "2015-10-31 15:05:19.773711"], ["updated_at", "2015-10-31 15:05:19.773711"]]
59344
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59345
+ Redirected to http://test.host/articles/1
59346
+ Completed 302 Found in 22ms (ActiveRecord: 1.5ms)
59347
+  (0.9ms) rollback transaction
59348
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
59349
+  (0.1ms) begin transaction
59350
+  (0.1ms) SAVEPOINT active_record_1
59351
+ SQL (1.1ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$4NryyplAa4ojNF0Do5ZUXen/xf53kwjgQ3SL8m8WW50rRl9c/PSP6"], ["remember_token", "EspUM8VI2NQC1Xyc1etuPg"], ["created_at", "2015-10-31 15:08:24.355441"], ["updated_at", "2015-10-31 15:08:24.355441"]]
59352
+  (0.5ms) RELEASE SAVEPOINT active_record_1
59353
+ Adeia::Element Load (0.7ms) SELECT "adeia_elements".* FROM "adeia_elements" WHERE "adeia_elements"."name" = ? LIMIT 1 [["name", "articles"]]
59354
+  (0.2ms) SAVEPOINT active_record_1
59355
+ SQL (0.4ms) INSERT INTO "adeia_elements" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "articles"], ["created_at", "2015-10-31 15:08:24.408181"], ["updated_at", "2015-10-31 15:08:24.408181"]]
59356
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59357
+ Adeia::Action Load (0.6ms) SELECT "adeia_actions".* FROM "adeia_actions" WHERE "adeia_actions"."name" = ? LIMIT 1 [["name", "share"]]
59358
+  (0.1ms) SAVEPOINT active_record_1
59359
+ SQL (0.2ms) INSERT INTO "adeia_actions" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "share"], ["created_at", "2015-10-31 15:08:24.428210"], ["updated_at", "2015-10-31 15:08:24.428210"]]
59360
+  (0.2ms) RELEASE SAVEPOINT active_record_1
59361
+  (0.1ms) SAVEPOINT active_record_1
59362
+ SQL (1.9ms) INSERT INTO "adeia_permissions" ("adeia_element_id", "owner_id", "owner_type", "permission_type", "read_right", "create_right", "update_right", "destroy_right", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adeia_element_id", 1], ["owner_id", 1], ["owner_type", "User"], ["permission_type", 0], ["read_right", "f"], ["create_right", "f"], ["update_right", "t"], ["destroy_right", "f"], ["created_at", "2015-10-31 15:08:24.470557"], ["updated_at", "2015-10-31 15:08:24.470557"]]
59363
+ SQL (1.8ms) INSERT INTO "adeia_action_permissions" ("adeia_action_id", "adeia_permission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["adeia_action_id", 1], ["adeia_permission_id", 1], ["created_at", "2015-10-31 15:08:24.474769"], ["updated_at", "2015-10-31 15:08:24.474769"]]
59364
+ Adeia::Action Load (0.1ms) SELECT "adeia_actions".* FROM "adeia_actions" WHERE "adeia_actions"."name" = ? LIMIT 1 [["name", "share"]]
59365
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59366
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59367
+  (0.1ms) SAVEPOINT active_record_1
59368
+ SQL (0.2ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$3xcwjmKJ4EIPvrvS/Jaf8.EGMONE.2GOwhTprEI8I6lMX.7buw/gO"], ["remember_token", "zL4vI-zTJgjRKOUedUUbpQ"], ["created_at", "2015-10-31 15:08:24.505294"], ["updated_at", "2015-10-31 15:08:24.505294"]]
59369
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59370
+  (0.1ms) SAVEPOINT active_record_1
59371
+ SQL (1.4ms) INSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 2], ["created_at", "2015-10-31 15:08:24.508204"], ["updated_at", "2015-10-31 15:08:24.508204"]]
59372
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59373
+ Processing by ArticlesController#edit as HTML
59374
+ Parameters: {"id"=>"1"}
59375
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "EspUM8VI2NQC1Xyc1etuPg"]]
59376
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
59377
+ Adeia::Token Load (0.7ms) SELECT "adeia_tokens".* FROM "adeia_tokens" WHERE "adeia_tokens"."token" IS NULL LIMIT 1
59378
+ Adeia::Group Load (0.6ms) SELECT "adeia_groups".* FROM "adeia_groups" INNER JOIN "adeia_group_users" ON "adeia_group_users"."adeia_group_id" = "adeia_groups"."id" WHERE "adeia_group_users"."user_id" = 1
59379
+  (0.2ms) SELECT "adeia_permissions"."resource_id" FROM "adeia_permissions" INNER JOIN "adeia_elements" ON "adeia_elements"."id" = "adeia_permissions"."adeia_element_id" WHERE "adeia_permissions"."update_right" = ? AND "adeia_permissions"."owner_type" = 'User' AND "adeia_permissions"."owner_id" = 1 AND "adeia_elements"."name" = 'articles' [["update_right", "t"]]
59380
+ Adeia::Permission Load (0.1ms) SELECT "adeia_permissions".* FROM "adeia_permissions" INNER JOIN "adeia_elements" ON "adeia_elements"."id" = "adeia_permissions"."adeia_element_id" WHERE "adeia_permissions"."update_right" = ? AND "adeia_permissions"."owner_type" = 'User' AND "adeia_permissions"."owner_id" = 1 AND "adeia_elements"."name" = 'articles' [["update_right", "t"]]
59381
+ Rendered articles/edit.html.erb within layouts/application (0.7ms)
59382
+ Completed 200 OK in 39ms (Views: 16.9ms | ActiveRecord: 2.4ms)
59383
+  (1.0ms) rollback transaction
59384
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
59385
+  (0.1ms) begin transaction
59386
+  (0.3ms) SAVEPOINT active_record_1
59387
+ SQL (1.8ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$gA9UzSI.av7t74ExTlLJXenT0zEqO9fbqp29EiFmqaolja9nwxFZK"], ["remember_token", "uDHFm2qbzitD-4M2jtpcew"], ["created_at", "2015-10-31 15:08:32.858626"], ["updated_at", "2015-10-31 15:08:32.858626"]]
59388
+  (0.2ms) RELEASE SAVEPOINT active_record_1
59389
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59390
+  (0.1ms) SAVEPOINT active_record_1
59391
+ SQL (0.5ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$ZA8yoKH8.tr.REszDwBe.u/xv3qnvEa/hb6Dc1Y7xMbwbuhY1D1s."], ["remember_token", "K2BU_sIV_IPWeatshjC7fA"], ["created_at", "2015-10-31 15:08:32.906087"], ["updated_at", "2015-10-31 15:08:32.906087"]]
59392
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59393
+  (0.8ms) rollback transaction
59394
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
59395
+  (0.1ms) begin transaction
59396
+  (0.2ms) SAVEPOINT active_record_1
59397
+ SQL (1.4ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$P4JBfia9klVDKOKMgInP4uO6VdqNzAGqxA6/bjrET7ITYIahONaU6"], ["remember_token", "HALseQzhT3mC4IQVJyYQaw"], ["created_at", "2015-10-31 15:08:55.455363"], ["updated_at", "2015-10-31 15:08:55.455363"]]
59398
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59399
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59400
+  (0.4ms) SAVEPOINT active_record_1
59401
+ SQL (0.4ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$E.i66sQ0O5rMrt35jbSqd.xxZLOBTmMWcqpUctsUrkm9DBRxjk5Ri"], ["remember_token", "1M87NIli-CtXs5J1kdTYIA"], ["created_at", "2015-10-31 15:08:55.489860"], ["updated_at", "2015-10-31 15:08:55.489860"]]
59402
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59403
+ Processing by ArticlesController#update as HTML
59404
+ Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}, "id"=>"1"}
59405
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
59406
+  (0.8ms) rollback transaction
59407
+ ActiveRecord::SchemaMigration Load (1.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
59408
+  (0.1ms) begin transaction
59409
+  (0.1ms) SAVEPOINT active_record_1
59410
+ SQL (1.4ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$vvLgm1O4Cx6HHkaaNZ6cG.WbqsZ14rcBFBEjpb5RxrcQMsYCnD4dK"], ["remember_token", "8CCvIATtgkPKTEIhvdP_1w"], ["created_at", "2015-10-31 15:09:42.221157"], ["updated_at", "2015-10-31 15:09:42.221157"]]
59411
+  (0.5ms) RELEASE SAVEPOINT active_record_1
59412
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59413
+  (0.2ms) SAVEPOINT active_record_1
59414
+ SQL (0.7ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$EaIrzJExAD1PnZu7gJnv9O6IYiu5PRI9Oefx8b18vsKVapXe2KKCe"], ["remember_token", "SRM_IQyy0Tg03kbR3rPVtw"], ["created_at", "2015-10-31 15:09:42.257488"], ["updated_at", "2015-10-31 15:09:42.257488"]]
59415
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59416
+ Processing by ArticlesController#update as HTML
59417
+ Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}, "id"=>"1"}
59418
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "8CCvIATtgkPKTEIhvdP_1w"]]
59419
+ Unpermitted parameter: user
59420
+ Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.5ms)
59421
+  (0.8ms) rollback transaction
59422
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
59423
+  (0.1ms) begin transaction
59424
+  (0.3ms) SAVEPOINT active_record_1
59425
+ SQL (1.2ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$O.yrii3/k5JjB0c7SKiy3OawPXcMY2rzcTLoe9FEMftE7zGNwABFS"], ["remember_token", "hFKeJwdTvk-xh2mBYLFKVA"], ["created_at", "2015-10-31 15:10:20.348051"], ["updated_at", "2015-10-31 15:10:20.348051"]]
59426
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59427
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59428
+  (0.1ms) SAVEPOINT active_record_1
59429
+ SQL (0.3ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$ya72z9Ass1m6aG1bzCBfKuhgCKV2qxUcliu9m7MH3UL8WIUzKP1PS"], ["remember_token", "j2OVBCKSTrTWpI-NFz0F0Q"], ["created_at", "2015-10-31 15:10:20.383632"], ["updated_at", "2015-10-31 15:10:20.383632"]]
59430
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59431
+  (0.1ms) SAVEPOINT active_record_1
59432
+ SQL (0.9ms) INSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 2], ["created_at", "2015-10-31 15:10:20.398036"], ["updated_at", "2015-10-31 15:10:20.398036"]]
59433
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59434
+ Processing by ArticlesController#update as HTML
59435
+ Parameters: {"id"=>"1"}
59436
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "hFKeJwdTvk-xh2mBYLFKVA"]]
59437
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.2ms)
59438
+  (0.9ms) rollback transaction
59439
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
59440
+  (0.1ms) begin transaction
59441
+  (0.1ms) SAVEPOINT active_record_1
59442
+ SQL (1.1ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$FJ6vmuTdNMYUgdNFlRK6c.eYaarLhilSLS6vZdE6ok8iEE10dCvRO"], ["remember_token", "lTYxNN4GKhgxL0Yqdv2uHQ"], ["created_at", "2015-10-31 15:10:28.565237"], ["updated_at", "2015-10-31 15:10:28.565237"]]
59443
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59444
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59445
+  (0.1ms) SAVEPOINT active_record_1
59446
+ SQL (0.4ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$M5jo.ZBle5zye8QMm/Yf9Odo8VcZpIJFtUkLxhXnQIwbzFZcLK/qa"], ["remember_token", "CgT5s5VqeG_1krA02X2gwA"], ["created_at", "2015-10-31 15:10:28.602861"], ["updated_at", "2015-10-31 15:10:28.602861"]]
59447
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59448
+  (0.1ms) SAVEPOINT active_record_1
59449
+ SQL (0.8ms) INSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 2], ["created_at", "2015-10-31 15:10:28.615526"], ["updated_at", "2015-10-31 15:10:28.615526"]]
59450
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59451
+ Processing by ArticlesController#update as HTML
59452
+ Parameters: {"article"=>{}, "id"=>"1"}
59453
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "lTYxNN4GKhgxL0Yqdv2uHQ"]]
59454
+ Completed 400 Bad Request in 2ms (ActiveRecord: 0.1ms)
59455
+  (0.9ms) rollback transaction
59456
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
59457
+  (0.1ms) begin transaction
59458
+  (0.1ms) SAVEPOINT active_record_1
59459
+ SQL (1.1ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$YLJZ61eEKAthzGnHxDJJSOOJbRx9PaQTbg4D8TmTHsjO6sSK.qt8W"], ["remember_token", "dlxoXciUbMVn1wxl69zfCw"], ["created_at", "2015-10-31 15:10:40.197075"], ["updated_at", "2015-10-31 15:10:40.197075"]]
59460
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59461
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59462
+  (0.1ms) SAVEPOINT active_record_1
59463
+ SQL (0.3ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$w3g7tPbhB5U.ACpQxEbwWutFL2ySn0vAFOsPPgTAF0eDQAsV76NWy"], ["remember_token", "Urn5QhJByALfDUdQ-QsHMA"], ["created_at", "2015-10-31 15:10:40.236695"], ["updated_at", "2015-10-31 15:10:40.236695"]]
59464
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59465
+  (0.1ms) SAVEPOINT active_record_1
59466
+ SQL (0.9ms) INSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 2], ["created_at", "2015-10-31 15:10:40.247398"], ["updated_at", "2015-10-31 15:10:40.247398"]]
59467
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59468
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59469
+ Processing by ArticlesController#update as HTML
59470
+ Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}, "id"=>"1"}
59471
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "dlxoXciUbMVn1wxl69zfCw"]]
59472
+ Unpermitted parameter: user
59473
+ Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms)
59474
+  (0.8ms) rollback transaction
59475
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
59476
+  (0.1ms) begin transaction
59477
+  (0.1ms) SAVEPOINT active_record_1
59478
+ SQL (0.4ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$zXV0kM4BDIjdXBukHj5b3eSKQc3wwzcyGaAXNJEE2RhFAyH4Nkew."], ["remember_token", "zJXLB2u1kUPYiGtmZYUCHg"], ["created_at", "2015-10-31 15:11:21.368110"], ["updated_at", "2015-10-31 15:11:21.368110"]]
59479
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59480
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59481
+  (0.1ms) SAVEPOINT active_record_1
59482
+ SQL (0.4ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$KIJBEjESiuhkfu8.Vc2VxuW4KBLqSeYl9zd/Uabd1KOFPPCpmrYPK"], ["remember_token", "yaI-XS_pSG0a7MP2Vy3GwQ"], ["created_at", "2015-10-31 15:11:21.395397"], ["updated_at", "2015-10-31 15:11:21.395397"]]
59483
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59484
+  (0.1ms) SAVEPOINT active_record_1
59485
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 2], ["created_at", "2015-10-31 15:11:21.403467"], ["updated_at", "2015-10-31 15:11:21.403467"]]
59486
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59487
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59488
+ Processing by ArticlesController#update as HTML
59489
+ Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}, "id"=>"1"}
59490
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "zJXLB2u1kUPYiGtmZYUCHg"]]
59491
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
59492
+ Unpermitted parameter: user
59493
+  (0.0ms) SAVEPOINT active_record_1
59494
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59495
+ Redirected to http://test.host/articles/1
59496
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
59497
+  (1.0ms) rollback transaction
59498
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
59499
+  (0.1ms) begin transaction
59500
+  (0.1ms) SAVEPOINT active_record_1
59501
+ SQL (1.1ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$P9Dd8hYnOPA./ovxc4bjJusu0q8qufb1OI2eez1GnmbJr.kl8a7ke"], ["remember_token", "HBwNZ-xBd5sTAoOgSthUcg"], ["created_at", "2015-10-31 15:12:34.901353"], ["updated_at", "2015-10-31 15:12:34.901353"]]
59502
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59503
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59504
+  (0.1ms) SAVEPOINT active_record_1
59505
+ SQL (0.4ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$xkeAYeVeVYDJcHthKa8lbuZR5GnTTWNMALwfQqwECXjwQsXLwjcBS"], ["remember_token", "Fm4hXR1n25S_2hcHkd-oRQ"], ["created_at", "2015-10-31 15:12:34.932673"], ["updated_at", "2015-10-31 15:12:34.932673"]]
59506
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59507
+ Processing by ArticlesController#create as HTML
59508
+ Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}}
59509
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "HBwNZ-xBd5sTAoOgSthUcg"]]
59510
+ Unpermitted parameter: user
59511
+  (0.1ms) SAVEPOINT active_record_1
59512
+ SQL (1.0ms) INSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 1], ["created_at", "2015-10-31 15:12:34.961461"], ["updated_at", "2015-10-31 15:12:34.961461"]]
59513
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59514
+ Redirected to http://test.host/articles/1
59515
+ Completed 302 Found in 26ms (ActiveRecord: 1.7ms)
59516
+  (0.9ms) rollback transaction
59517
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
59518
+  (0.1ms) begin transaction
59519
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59520
+  (0.1ms) SAVEPOINT active_record_1
59521
+ SQL (1.0ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$OhWdgZH403fB16Rj462EyOCczAMsYKPjFxTrLlLLk2BzDPG3gC0PC"], ["remember_token", "Ug_DzBvTZLGmj8YyQCBL-A"], ["created_at", "2015-10-31 15:15:08.385637"], ["updated_at", "2015-10-31 15:15:08.385637"]]
59522
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59523
+ Processing by ArticlesController#create as HTML
59524
+ Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"1"}}
59525
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."remember_token" IS NULL LIMIT 1
59526
+ Completed 500 Internal Server Error in 35ms (ActiveRecord: 0.1ms)
59527
+  (3.0ms) rollback transaction
59528
+ ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
59529
+  (0.1ms) begin transaction
59530
+ User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59531
+  (0.1ms) SAVEPOINT active_record_1
59532
+ SQL (2.3ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$BSO0u1Z27W1SWJcieUsKC..TCV7q3ive92SfD0xT5nEKHgcrjhCnS"], ["remember_token", "Lh0CWl5ZIBg3Yw6sAfYtqw"], ["created_at", "2015-10-31 15:15:16.113142"], ["updated_at", "2015-10-31 15:15:16.113142"]]
59533
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59534
+  (0.1ms) SAVEPOINT active_record_1
59535
+ SQL (2.9ms) INSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 1], ["created_at", "2015-10-31 15:15:16.129792"], ["updated_at", "2015-10-31 15:15:16.129792"]]
59536
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59537
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59538
+ Processing by ArticlesController#update as HTML
59539
+ Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"1"}, "id"=>"1"}
59540
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."remember_token" IS NULL LIMIT 1
59541
+ Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.1ms)
59542
+  (0.8ms) rollback transaction
59543
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
59544
+  (0.1ms) begin transaction
59545
+  (0.1ms) SAVEPOINT active_record_1
59546
+ SQL (1.2ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$0dEK/gJHvRnt7eCrScq5bunqJ80BGMIOaB0f6sp5E2h.oY6d.XdPm"], ["remember_token", "8DfD0i0IeIZ1pTaE8vdh7g"], ["created_at", "2015-10-31 15:16:19.211850"], ["updated_at", "2015-10-31 15:16:19.211850"]]
59547
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59548
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59549
+  (0.1ms) SAVEPOINT active_record_1
59550
+ SQL (0.3ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$m3g15iK2x080FFo1mSDyPeStooFTCanM1iZS1NzJqL4idydbAntm."], ["remember_token", "fPg5zeaj67PhLIHhPL-qUA"], ["created_at", "2015-10-31 15:16:19.236104"], ["updated_at", "2015-10-31 15:16:19.236104"]]
59551
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59552
+ Processing by ArticlesController#create as HTML
59553
+ Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}}
59554
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "8DfD0i0IeIZ1pTaE8vdh7g"]]
59555
+ Unpermitted parameter: user
59556
+  (0.1ms) SAVEPOINT active_record_1
59557
+ SQL (1.0ms) INSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 1], ["created_at", "2015-10-31 15:16:19.256759"], ["updated_at", "2015-10-31 15:16:19.256759"]]
59558
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59559
+ Redirected to http://test.host/articles/1
59560
+ Completed 302 Found in 18ms (ActiveRecord: 1.5ms)
59561
+  (0.9ms) rollback transaction
59562
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
59563
+  (0.1ms) begin transaction
59564
+  (0.2ms) SAVEPOINT active_record_1
59565
+ SQL (1.1ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$AWdkAoJuTOQ/vQPpuejOCeZIHm/can144wmFGtLoTmBFL6hmOh1u."], ["remember_token", "w7ptNEgvHS4TsCtU7VKIvA"], ["created_at", "2015-10-31 15:17:01.541493"], ["updated_at", "2015-10-31 15:17:01.541493"]]
59566
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59567
+  (0.5ms) rollback transaction
59568
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
59569
+  (0.1ms) begin transaction
59570
+  (0.1ms) SAVEPOINT active_record_1
59571
+ SQL (2.0ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$.PCF7N.gIWiEm.KA87MwdusnrjrWn2bTKnbg7txJGHdi.qRYTNTmu"], ["remember_token", "jSvMJ7KK96wyuAgJWH1abw"], ["created_at", "2015-10-31 15:17:16.883197"], ["updated_at", "2015-10-31 15:17:16.883197"]]
59572
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59573
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59574
+  (0.1ms) SAVEPOINT active_record_1
59575
+ SQL (0.3ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$VSlFa/gjfcqiBwTVZX1iYO.NhUYSpfx2hiQTcNOg4RnC3kYP8noZS"], ["remember_token", "8Xp3K89HSLv8XI2Bj9Yffw"], ["created_at", "2015-10-31 15:17:16.919958"], ["updated_at", "2015-10-31 15:17:16.919958"]]
59576
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59577
+  (0.1ms) SAVEPOINT active_record_1
59578
+ SQL (1.2ms) INSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 2], ["created_at", "2015-10-31 15:17:16.934980"], ["updated_at", "2015-10-31 15:17:16.934980"]]
59579
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59580
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59581
+ Processing by ArticlesController#update as HTML
59582
+ Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}, "id"=>"1"}
59583
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "jSvMJ7KK96wyuAgJWH1abw"]]
59584
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
59585
+ Unpermitted parameter: user
59586
+  (0.1ms) SAVEPOINT active_record_1
59587
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59588
+ Redirected to http://test.host/articles/1
59589
+ Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
59590
+  (0.9ms) rollback transaction
59591
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
59592
+  (0.1ms) begin transaction
59593
+  (0.1ms) SAVEPOINT active_record_1
59594
+ SQL (1.1ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$MWDR/SrVcQNikrxSDC9zH.l34u9GTmfKX/onfRRDPp5PFP.aem9eO"], ["remember_token", "ZObHuKvAcPPpfFG1H8fzFQ"], ["created_at", "2015-10-31 15:17:53.872399"], ["updated_at", "2015-10-31 15:17:53.872399"]]
59595
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59596
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59597
+  (0.1ms) SAVEPOINT active_record_1
59598
+ SQL (0.4ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$NvHUmUWz7ZmgXwBizeYhZOIaO21gQAo/Nc.Ubadzf6sTBj/nSm94q"], ["remember_token", "2ED1B4aqVGhuPm0TdvG74Q"], ["created_at", "2015-10-31 15:17:53.907445"], ["updated_at", "2015-10-31 15:17:53.907445"]]
59599
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59600
+  (0.1ms) SAVEPOINT active_record_1
59601
+ SQL (1.2ms) INSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 2], ["created_at", "2015-10-31 15:17:53.919519"], ["updated_at", "2015-10-31 15:17:53.919519"]]
59602
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59603
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59604
+ Processing by ArticlesController#update as HTML
59605
+ Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}, "id"=>"1"}
59606
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "ZObHuKvAcPPpfFG1H8fzFQ"]]
59607
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
59608
+ Unpermitted parameter: user
59609
+  (0.1ms) SAVEPOINT active_record_1
59610
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59611
+ Redirected to http://test.host/articles/1
59612
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
59613
+  (0.9ms) rollback transaction
59614
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
59615
+  (0.1ms) begin transaction
59616
+  (0.1ms) SAVEPOINT active_record_1
59617
+ SQL (1.1ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$bB7lTCQPFuH2g6iT4Ldaw.i24n9AfOtSzYzGX1DapF4i9kmkr5RV6"], ["remember_token", "OJVBzFDMrjV5dBUV-TvCUw"], ["created_at", "2015-10-31 15:18:14.916476"], ["updated_at", "2015-10-31 15:18:14.916476"]]
59618
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59619
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59620
+  (0.1ms) SAVEPOINT active_record_1
59621
+ SQL (0.4ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$GCo5jZ4ata4bn.wOGqz5Fe0lQRehp8RPz1Y6XvPvHJ7Pb4nOPFYN."], ["remember_token", "G7hQpP6YAv0W02w3ylifpQ"], ["created_at", "2015-10-31 15:18:14.944213"], ["updated_at", "2015-10-31 15:18:14.944213"]]
59622
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59623
+ Processing by ArticlesController#create as HTML
59624
+ Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}}
59625
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "OJVBzFDMrjV5dBUV-TvCUw"]]
59626
+ Unpermitted parameter: user
59627
+  (0.1ms) SAVEPOINT active_record_1
59628
+ SQL (1.0ms) INSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 1], ["created_at", "2015-10-31 15:18:14.977048"], ["updated_at", "2015-10-31 15:18:14.977048"]]
59629
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59630
+ Redirected to http://test.host/articles/1
59631
+ Completed 302 Found in 28ms (ActiveRecord: 1.5ms)
59632
+  (0.8ms) rollback transaction
59633
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
59634
+  (0.1ms) begin transaction
59635
+  (0.2ms) SAVEPOINT active_record_1
59636
+ SQL (1.1ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$1hXUDNOaKSI2ozPHmKPTSOHD7kfz72XehjPXBj2hhpcBWosduBVti"], ["remember_token", "X91dWPMr4a5LO4cEiOm_gg"], ["created_at", "2015-10-31 15:18:37.153209"], ["updated_at", "2015-10-31 15:18:37.153209"]]
59637
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59638
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59639
+  (0.2ms) SAVEPOINT active_record_1
59640
+ SQL (0.3ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$KvoxNmrXpLDbs1Z6n9tFlOr8q4npbCatXzB6e9/TlC1NmH36hMmzy"], ["remember_token", "83ice_9sZdsBhlWjBozbbA"], ["created_at", "2015-10-31 15:18:37.185995"], ["updated_at", "2015-10-31 15:18:37.185995"]]
59641
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59642
+ Processing by ArticlesController#create as HTML
59643
+ Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}}
59644
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "X91dWPMr4a5LO4cEiOm_gg"]]
59645
+ Unpermitted parameter: user
59646
+  (0.1ms) SAVEPOINT active_record_1
59647
+ SQL (1.0ms) INSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 1], ["created_at", "2015-10-31 15:18:37.215159"], ["updated_at", "2015-10-31 15:18:37.215159"]]
59648
+  (0.2ms) RELEASE SAVEPOINT active_record_1
59649
+ Redirected to http://test.host/articles/1
59650
+ Completed 302 Found in 25ms (ActiveRecord: 1.6ms)
59651
+  (0.9ms) rollback transaction
59652
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
59653
+  (0.1ms) begin transaction
59654
+  (0.2ms) SAVEPOINT active_record_1
59655
+ SQL (1.4ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "admin"], ["password_digest", "$2a$04$w5IHipCOfUAw76Nw9oY3M.dcYU2hDrk4oqS38nIYmBEFGIP1rU98u"], ["remember_token", "Qd_1Q9rYcGNNfUYVUXoBrA"], ["created_at", "2015-10-31 15:19:29.373825"], ["updated_at", "2015-10-31 15:19:29.373825"]]
59656
+  (0.2ms) RELEASE SAVEPOINT active_record_1
59657
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59658
+  (0.1ms) SAVEPOINT active_record_1
59659
+ SQL (0.4ms) INSERT INTO "users" ("name", "password_digest", "remember_token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "editor"], ["password_digest", "$2a$04$.61KJtxw6sW6BzMiT1WQqOqTvt0kdpYauf5VM06uCAs/EqGK4MSYu"], ["remember_token", "iYPN95LAWqGuBFCH1-IDvg"], ["created_at", "2015-10-31 15:19:29.421705"], ["updated_at", "2015-10-31 15:19:29.421705"]]
59660
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59661
+  (0.1ms) SAVEPOINT active_record_1
59662
+ SQL (0.9ms) INSERT INTO "articles" ("title", "content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Des ours meurt chaque année"], ["content", "Chaque année, plus de 1000 ourse blancs meurt"], ["user_id", 2], ["created_at", "2015-10-31 15:19:29.433980"], ["updated_at", "2015-10-31 15:19:29.433980"]]
59663
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59664
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "editor"]]
59665
+ Processing by ArticlesController#update as HTML
59666
+ Parameters: {"article"=>{"title"=>"Des ours meurt chaque année", "content"=>"Chaque année, plus de 1000 ourse blancs meurt", "user"=>"2"}, "id"=>"1"}
59667
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."remember_token" = ? LIMIT 1 [["remember_token", "Qd_1Q9rYcGNNfUYVUXoBrA"]]
59668
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
59669
+ Unpermitted parameter: user
59670
+  (0.1ms) SAVEPOINT active_record_1
59671
+  (0.2ms) RELEASE SAVEPOINT active_record_1
59672
+ Redirected to http://test.host/articles/1
59673
+ Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
59674
+  (0.8ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adeia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - khcr