my_forum 0.0.1.beta33 → 0.0.1.beta34

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: 42d3c4effdd86a539eb88301254c27338b41e46c
4
- data.tar.gz: 6aa22f02793852e3978d20090e4bff5bc22ea810
3
+ metadata.gz: cd81f4bf37c610d579c869eae657636de20332cb
4
+ data.tar.gz: 4f8ef10b0431888c6920aca2d68d58d289f50090
5
5
  SHA512:
6
- metadata.gz: ba7c4fe57317a26cf37ca85ac973dd47c41de8601b5353405536b4e34a3be18fee3619dae762db1611a5ee1bf381dbf7f01fc9619c62314b538e8f23b345e8b9
7
- data.tar.gz: 327d3b5eea5608aeb07fbb0ea1f1e7796296c7748abe1cb72ae799e68a585ca2612cd44d7a8f3386bc1f08c21facb6d6f1cfcd119ae8b27366e175689a649117
6
+ metadata.gz: 957b579821ddfd41ea1822fc6bbe110824f633e53f02750017135c31438c466e123f1751c7f99bd0dedd77c08e9a7cf96e4d660886dc823b525bc3d5f8e149b1
7
+ data.tar.gz: 30afa6ff93b9b28b168b86bfaad98939e06fa0dde50273d5b0dadf9c1f2e32971a77c8f1ed0351b4af79b0a878bc32e720a0e1c879e2db98d04f3edebd2ca30b
@@ -34,6 +34,7 @@ module MyForum
34
34
  end
35
35
 
36
36
  def new_topic_button
37
+ return unless current_user
37
38
  return unless @forum
38
39
  content_tag :div, class: 'buttons_for_new_topic' do
39
40
  link_to t('my_forum.create_new_topic'), new_forum_topic_path(@forum), class: 'btn btn-primary'
@@ -13,7 +13,6 @@ module MyForum
13
13
  text.gsub!(/\[\/img\]/i, '" />')
14
14
 
15
15
  # Youtube
16
- #[?!\s]
17
16
  text.gsub!(/(?:https?:\/\/)?(?:www\.)?youtu(?:\.be|be\.com)\/(?:watch\?v=)?(?<video_code>[\w-]{10,})/i) do |match|
18
17
  "<iframe width='560' height='315' src='https://www.youtube.com/embed/#{$~[:video_code]}' frameborder='0' allowfullscreen></iframe>"
19
18
  end
@@ -35,7 +35,7 @@ module MyForum
35
35
  JOIN my_forum_posts ON my_forum_posts.id = my_forum_topics.latest_post_id
36
36
  JOIN my_forum_users ON my_forum_posts.user_id = my_forum_users.id
37
37
  WHERE my_forum_topics.forum_id = #{self.id} AND my_forum_topics.deleted IS FALSE
38
- ORDER BY my_forum_posts.id DESC
38
+ ORDER BY my_forum_topics.pinned DESC, my_forum_posts.id DESC
39
39
  ", page: page, per_page: per_page)
40
40
  end
41
41
 
@@ -1,6 +1,7 @@
1
1
  = new_topic_button
2
2
 
3
- = link_to t('.mark_all_as_read'), mark_all_as_read_path
3
+ - if current_user
4
+ = link_to t('.mark_all_as_read'), mark_all_as_read_path
4
5
 
5
6
  .container-fluid
6
7
  .row.forum-header
@@ -1,3 +1,3 @@
1
1
  module MyForum
2
- VERSION = "0.0.1.beta33"
2
+ VERSION = "0.0.1.beta34"
3
3
  end
@@ -3507,3 +3507,213 @@ Completed 302 Found in 12ms (ActiveRecord: 0.8ms)
3507
3507
  SQL (0.3ms) INSERT INTO "my_forum_users" ("password", "salt", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["password", "e607975fb5beeacf7cf60407e50717ea1935508afc4640d56f31a9a3eb55a96e"], ["salt", "a7958c11437416ef8d04b3cb74abd978e4422f90c9a50e42d83713593893c43a"], ["created_at", "2015-12-23 09:17:01.197412"], ["updated_at", "2015-12-23 09:17:01.197412"]]
3508
3508
   (0.0ms) RELEASE SAVEPOINT active_record_1
3509
3509
   (0.3ms) rollback transaction
3510
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
3511
+  (0.1ms) begin transaction
3512
+  (0.1ms) SAVEPOINT active_record_1
3513
+ MyForum::User Exists (0.4ms) SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."login" = 'demo' LIMIT 1
3514
+ MyForum::User Exists (0.1ms) SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."email" = 'demo@example.com' LIMIT 1
3515
+ SQL (0.6ms) INSERT INTO "my_forum_users" ("login", "password", "email", "salt", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["login", "demo"], ["password", "bece818712284d9f181257128f09c2338c05eae4ba4d3ba4339297c344033771"], ["email", "demo@example.com"], ["salt", "be10b8efe28992c68a3c94457a18d54867688d622c6ef2f1e1ff62a1e1ac045d"], ["created_at", "2015-12-23 10:45:43.960219"], ["updated_at", "2015-12-23 10:45:43.960219"]]
3516
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3517
+ Processing by MyForum::UsersController#signin as HTML
3518
+ Parameters: {"user"=>{"login"=>"demo", "password"=>"[FILTERED]"}}
3519
+ MyForum::User Load (0.2ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."login" = ? LIMIT 1 [["login", "demo"]]
3520
+ Redirected to http://test.host/my_forum/
3521
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
3522
+  (0.4ms) rollback transaction
3523
+  (0.0ms) begin transaction
3524
+ Processing by MyForum::UsersController#signin as HTML
3525
+ Parameters: {"user"=>{"login"=>"", "password"=>"[FILTERED]"}}
3526
+ MyForum::User Load (0.1ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."login" = ? LIMIT 1 [["login", ""]]
3527
+ Rendered /Users/vint/rails/my_forum/app/views/my_forum/users/signin.haml within layouts/my_forum/application (0.2ms)
3528
+ Completed 200 OK in 18ms (Views: 10.8ms | ActiveRecord: 0.1ms)
3529
+ Processing by MyForum::UsersController#signin as HTML
3530
+ Parameters: {"user"=>{"login"=>"wrong", "password"=>"[FILTERED]"}}
3531
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."login" = ? LIMIT 1 [["login", "wrong"]]
3532
+ Rendered /Users/vint/rails/my_forum/app/views/my_forum/users/signin.haml within layouts/my_forum/application (0.1ms)
3533
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
3534
+  (0.1ms) rollback transaction
3535
+  (0.1ms) begin transaction
3536
+  (0.0ms) SAVEPOINT active_record_1
3537
+ MyForum::User Exists (0.1ms) SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."login" = 'demo' LIMIT 1
3538
+ MyForum::User Exists (0.0ms) SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."email" = 'demo@example.com' LIMIT 1
3539
+ SQL (1.0ms) INSERT INTO "my_forum_users" ("login", "password", "email", "salt", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["login", "demo"], ["password", "bece818712284d9f181257128f09c2338c05eae4ba4d3ba4339297c344033771"], ["email", "demo@example.com"], ["salt", "be10b8efe28992c68a3c94457a18d54867688d622c6ef2f1e1ff62a1e1ac045d"], ["created_at", "2015-12-23 10:45:43.999559"], ["updated_at", "2015-12-23 10:45:43.999559"]]
3540
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3541
+ Processing by MyForum::UsersController#forgot_password as HTML
3542
+ Parameters: {"user"=>{"email"=>"demo@example.com"}}
3543
+ MyForum::User Load (0.1ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
3544
+ MyForum::UserGroup Load (0.5ms) SELECT "my_forum_user_groups".* FROM "my_forum_user_groups" WHERE "my_forum_user_groups"."name" = ? LIMIT 1 [["name", "Guests"]]
3545
+ MyForum::UserGroup Load (0.0ms) SELECT "my_forum_user_groups".* FROM "my_forum_user_groups" WHERE "my_forum_user_groups"."name" = ? LIMIT 1 [["name", "Member"]]
3546
+ MyForum::UserGroupLink Load (0.4ms) SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
3547
+ MyForum::User Load (0.1ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
3548
+ MyForum::UserGroupLink Load (0.1ms) SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
3549
+  (0.0ms) SAVEPOINT active_record_1
3550
+ SQL (0.4ms) UPDATE "my_forum_users" SET "updated_at" = '2015-12-23 10:45:44.048965' WHERE "my_forum_users"."id" = ? [["id", 2]]
3551
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3552
+ MyForum::User Load (0.1ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."email" = ? LIMIT 1 [["email", "demo@example.com"]]
3553
+  (0.1ms) SAVEPOINT active_record_1
3554
+ MyForum::User Exists (0.1ms) SELECT 1 AS one FROM "my_forum_users" WHERE ("my_forum_users"."login" = 'demo' AND "my_forum_users"."id" != 2) LIMIT 1
3555
+ MyForum::User Exists (0.1ms) SELECT 1 AS one FROM "my_forum_users" WHERE ("my_forum_users"."email" = 'demo@example.com' AND "my_forum_users"."id" != 2) LIMIT 1
3556
+ SQL (0.1ms) UPDATE "my_forum_users" SET "password" = ?, "salt" = ?, "updated_at" = ? WHERE "my_forum_users"."id" = ? [["password", "5c408f0747b1ed44af3499404851d29cd7cab7ef74d0ac05faec35d6280ad742"], ["salt", "a08b6098e7dbb8859278c088fffcbccc667a659fccd40e86199198adeb2904be"], ["updated_at", "2015-12-23 10:45:44.062403"], ["id", 2]]
3557
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3558
+ Rendered /Users/vint/rails/my_forum/app/views/my_forum/user_mailer/reset_password_email.text.erb within layouts/mailer (1.3ms)
3559
+ Rendered /Users/vint/rails/my_forum/app/views/my_forum/user_mailer/reset_password_email.haml within layouts/mailer (0.8ms)
3560
+
3561
+ MyForum::UserMailer#reset_password_email: processed outbound mail in 146.9ms
3562
+
3563
+ Sent mail to demo@example.com (6.3ms)
3564
+ Date: Wed, 23 Dec 2015 12:45:44 +0200
3565
+ From: from@example.com
3566
+ To: demo@example.com
3567
+ Message-ID: <567a7b5833377_79fc3fe6a0c5e204606a@Vitalys-MacBook-Pro.local.mail>
3568
+ Subject: vaz.od.ua - New password
3569
+ Mime-Version: 1.0
3570
+ Content-Type: multipart/alternative;
3571
+ boundary="--==_mimepart_567a7b5832300_79fc3fe6a0c5e204605d7";
3572
+ charset=UTF-8
3573
+ Content-Transfer-Encoding: 7bit
3574
+
3575
+
3576
+ ----==_mimepart_567a7b5832300_79fc3fe6a0c5e204605d7
3577
+ Content-Type: text/plain;
3578
+ charset=UTF-8
3579
+ Content-Transfer-Encoding: 7bit
3580
+
3581
+ Your new password is: zGyQvObzkL
3582
+
3583
+ ----==_mimepart_567a7b5832300_79fc3fe6a0c5e204605d7
3584
+ Content-Type: text/html;
3585
+ charset=UTF-8
3586
+ Content-Transfer-Encoding: 7bit
3587
+
3588
+ <html>
3589
+ <body>
3590
+ Your new password is: zGyQvObzkL
3591
+
3592
+ </body>
3593
+ </html>
3594
+
3595
+ ----==_mimepart_567a7b5832300_79fc3fe6a0c5e204605d7--
3596
+
3597
+ Redirected to http://test.host/my_forum/
3598
+ Completed 302 Found in 210ms (ActiveRecord: 2.4ms)
3599
+ MyForum::User Load (0.1ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? LIMIT 1 [["id", 2]]
3600
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? LIMIT 1 [["id", 2]]
3601
+  (0.5ms) rollback transaction
3602
+  (0.0ms) begin transaction
3603
+  (0.0ms) SAVEPOINT active_record_1
3604
+ MyForum::User Exists (0.1ms) SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."login" = 'demo' LIMIT 1
3605
+ MyForum::User Exists (0.1ms) SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."email" = 'demo@example.com' LIMIT 1
3606
+ SQL (0.2ms) INSERT INTO "my_forum_users" ("login", "password", "email", "salt", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["login", "demo"], ["password", "a95e478442d91f669822822a8223c4574415f559961c98230b708afa2d5c964b"], ["email", "demo@example.com"], ["salt", "761c6c5beeef80cdcac86403e1d8697bc139af030be2e6a2b55be282e7fcf39d"], ["created_at", "2015-12-23 10:45:44.220151"], ["updated_at", "2015-12-23 10:45:44.220151"]]
3607
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3608
+ Processing by MyForum::UsersController#update as HTML
3609
+ Parameters: {"user"=>{"email"=>"abc@google.com", "password"=>"[FILTERED]"}, "id"=>"2"}
3610
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
3611
+ MyForum::UserGroupLink Load (0.1ms) SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
3612
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
3613
+ MyForum::UserGroupLink Load (0.0ms) SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
3614
+  (0.0ms) SAVEPOINT active_record_1
3615
+ SQL (0.3ms) UPDATE "my_forum_users" SET "updated_at" = '2015-12-23 10:45:44.227858' WHERE "my_forum_users"."id" = ? [["id", 2]]
3616
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3617
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
3618
+ MyForum::UserGroupLink Load (0.0ms) SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
3619
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
3620
+ MyForum::UserGroupLink Load (0.0ms) SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
3621
+ Unpermitted parameter: password
3622
+ SQL (0.1ms) UPDATE "my_forum_users" SET "email" = 'abc@google.com' WHERE "my_forum_users"."id" = ? [["id", 2]]
3623
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
3624
+ MyForum::UserGroupLink Load (0.0ms) SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
3625
+ Redirected to http://test.host/my_forum/users/2/edit
3626
+ Completed 302 Found in 10ms (ActiveRecord: 0.9ms)
3627
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? LIMIT 1 [["id", 2]]
3628
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? LIMIT 1 [["id", 2]]
3629
+  (0.8ms) rollback transaction
3630
+  (0.0ms) begin transaction
3631
+  (0.0ms) SAVEPOINT active_record_1
3632
+ MyForum::User Exists (0.1ms) SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."login" = 'demo' LIMIT 1
3633
+ MyForum::User Exists (0.0ms) SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."email" = 'demo@example.com' LIMIT 1
3634
+ SQL (0.2ms) INSERT INTO "my_forum_users" ("login", "password", "email", "salt", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["login", "demo"], ["password", "a95e478442d91f669822822a8223c4574415f559961c98230b708afa2d5c964b"], ["email", "demo@example.com"], ["salt", "761c6c5beeef80cdcac86403e1d8697bc139af030be2e6a2b55be282e7fcf39d"], ["created_at", "2015-12-23 10:45:44.240140"], ["updated_at", "2015-12-23 10:45:44.240140"]]
3635
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3636
+ Processing by MyForum::UsersController#update as HTML
3637
+ Parameters: {"user"=>{"email"=>"abc@google.com", "password"=>"[FILTERED]"}, "id"=>"2"}
3638
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
3639
+ MyForum::UserGroupLink Load (0.1ms) SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
3640
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
3641
+ MyForum::UserGroupLink Load (0.0ms) SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
3642
+  (0.0ms) SAVEPOINT active_record_1
3643
+ SQL (0.3ms) UPDATE "my_forum_users" SET "updated_at" = '2015-12-23 10:45:44.247975' WHERE "my_forum_users"."id" = ? [["id", 2]]
3644
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3645
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
3646
+ MyForum::UserGroupLink Load (0.0ms) SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
3647
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
3648
+ MyForum::UserGroupLink Load (0.1ms) SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
3649
+ Unpermitted parameter: password
3650
+ SQL (0.0ms) UPDATE "my_forum_users" SET "email" = 'abc@google.com' WHERE "my_forum_users"."id" = ? [["id", 2]]
3651
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
3652
+ MyForum::UserGroupLink Load (0.0ms) SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
3653
+ Redirected to http://test.host/my_forum/users/2/edit
3654
+ Completed 302 Found in 10ms (ActiveRecord: 0.9ms)
3655
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? LIMIT 1 [["id", 2]]
3656
+  (0.6ms) rollback transaction
3657
+  (0.0ms) begin transaction
3658
+  (0.0ms) SAVEPOINT active_record_1
3659
+ MyForum::User Exists (0.1ms) SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."login" = 'demo' LIMIT 1
3660
+ MyForum::User Exists (0.0ms) SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."email" = 'demo@example.com' LIMIT 1
3661
+ SQL (0.2ms) INSERT INTO "my_forum_users" ("login", "password", "email", "salt", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["login", "demo"], ["password", "a95e478442d91f669822822a8223c4574415f559961c98230b708afa2d5c964b"], ["email", "demo@example.com"], ["salt", "761c6c5beeef80cdcac86403e1d8697bc139af030be2e6a2b55be282e7fcf39d"], ["created_at", "2015-12-23 10:45:44.259770"], ["updated_at", "2015-12-23 10:45:44.259770"]]
3662
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3663
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? LIMIT 1 [["id", 2]]
3664
+ Processing by MyForum::UsersController#update as HTML
3665
+ Parameters: {"user"=>{"email"=>"abc@google.com", "password"=>"[FILTERED]", "new_password"=>"[FILTERED]"}, "id"=>"2"}
3666
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
3667
+ MyForum::UserGroupLink Load (0.1ms) SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
3668
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
3669
+ MyForum::UserGroupLink Load (0.1ms) SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
3670
+  (0.0ms) SAVEPOINT active_record_1
3671
+ SQL (0.3ms) UPDATE "my_forum_users" SET "updated_at" = '2015-12-23 10:45:44.268845' WHERE "my_forum_users"."id" = ? [["id", 2]]
3672
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3673
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
3674
+ MyForum::UserGroupLink Load (0.0ms) SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
3675
+ Unpermitted parameter: new_password
3676
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
3677
+ MyForum::UserGroupLink Load (0.0ms) SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
3678
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
3679
+ MyForum::UserGroupLink Load (0.0ms) SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
3680
+  (0.0ms) SAVEPOINT active_record_1
3681
+ MyForum::User Exists (0.0ms) SELECT 1 AS one FROM "my_forum_users" WHERE ("my_forum_users"."login" = 'demo' AND "my_forum_users"."id" != 2) LIMIT 1
3682
+ MyForum::User Exists (0.0ms) SELECT 1 AS one FROM "my_forum_users" WHERE ("my_forum_users"."email" = 'demo@example.com' AND "my_forum_users"."id" != 2) LIMIT 1
3683
+ SQL (0.0ms) UPDATE "my_forum_users" SET "password" = ?, "salt" = ?, "updated_at" = ? WHERE "my_forum_users"."id" = ? [["password", "442b77afacb24914e3c54176bfb38032e32ca94c760e57d155bf43104562aced"], ["salt", "06515a0a1b628ad116a42df5f8ddd698276b3ae612e7d0621ec3531faf0e3bab"], ["updated_at", "2015-12-23 10:45:44.274516"], ["id", 2]]
3684
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3685
+ MyForum::User Load (0.1ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
3686
+ MyForum::UserGroupLink Load (0.0ms) SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
3687
+ Unpermitted parameter: password
3688
+ SQL (0.0ms) UPDATE "my_forum_users" SET "email" = 'abc@google.com' WHERE "my_forum_users"."id" = ? [["id", 2]]
3689
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."id" = ? ORDER BY "my_forum_users"."id" ASC LIMIT 1 [["id", 2]]
3690
+ MyForum::UserGroupLink Load (0.0ms) SELECT "my_forum_user_group_links".* FROM "my_forum_user_group_links" WHERE "my_forum_user_group_links"."user_id" IN (2)
3691
+ Redirected to http://test.host/my_forum/users/2/edit
3692
+ Completed 302 Found in 15ms (ActiveRecord: 1.2ms)
3693
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? LIMIT 1 [["id", 2]]
3694
+ MyForum::User Load (0.0ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."id" = ? LIMIT 1 [["id", 2]]
3695
+  (0.7ms) rollback transaction
3696
+  (0.0ms) begin transaction
3697
+ Processing by MyForum::UsersController#create as HTML
3698
+ Parameters: {"user"=>{"email"=>"new_user@google.com", "password"=>"[FILTERED]", "login"=>"new_user"}}
3699
+ MyForum::User Exists (0.1ms) SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."login" = 'new_user' LIMIT 1
3700
+ MyForum::User Exists (0.0ms) SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."email" = 'new_user@google.com' LIMIT 1
3701
+  (0.1ms) SAVEPOINT active_record_1
3702
+ MyForum::User Exists (0.1ms) SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."login" = 'new_user' LIMIT 1
3703
+ MyForum::User Exists (0.1ms) SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."email" = 'new_user@google.com' LIMIT 1
3704
+ SQL (0.3ms) INSERT INTO "my_forum_users" ("login", "email", "password", "salt", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["login", "new_user"], ["email", "new_user@google.com"], ["password", "c51755a02a0ed8944e9c581688d4880ece0512f782a36b38ae6f27e5d741cf8d"], ["salt", "3f2b1a363eb37e7ec987638de306fd2bc39729c2a3848ae81eec763aa9f5783d"], ["created_at", "2015-12-23 10:45:44.294396"], ["updated_at", "2015-12-23 10:45:44.294396"]]
3705
+ SQL (0.1ms) INSERT INTO "my_forum_user_group_links" ("user_group_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_group_id", 2], ["user_id", 2], ["created_at", "2015-12-23 10:45:44.295733"], ["updated_at", "2015-12-23 10:45:44.295733"]]
3706
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3707
+ Redirected to http://test.host/my_forum/
3708
+ Completed 302 Found in 14ms (ActiveRecord: 0.8ms)
3709
+ MyForum::User Load (0.1ms) SELECT "my_forum_users".* FROM "my_forum_users" WHERE "my_forum_users"."is_deleted" = 'f' AND "my_forum_users"."email" = ? LIMIT 1 [["email", "new_user@google.com"]]
3710
+  (0.5ms) rollback transaction
3711
+  (0.1ms) begin transaction
3712
+  (0.0ms) rollback transaction
3713
+  (0.0ms) begin transaction
3714
+  (0.0ms) SAVEPOINT active_record_1
3715
+ MyForum::User Exists (0.1ms) SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."login" IS NULL LIMIT 1
3716
+ MyForum::User Exists (0.0ms) SELECT 1 AS one FROM "my_forum_users" WHERE "my_forum_users"."email" IS NULL LIMIT 1
3717
+ SQL (0.2ms) INSERT INTO "my_forum_users" ("password", "salt", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["password", "649ff51c6d3681c30649b9c6adbc4e690518fdfecc09a44d897e9b548946a72f"], ["salt", "5a5085dec088164652083a05a5a400bac5dd91b8cab3e4e26bb8e302e959bf89"], ["created_at", "2015-12-23 10:45:44.307424"], ["updated_at", "2015-12-23 10:45:44.307424"]]
3718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3719
+  (0.3ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_forum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.beta33
4
+ version: 0.0.1.beta34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vitaly Omelchenko