shareable_models 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +661 -0
  3. data/README.md +123 -0
  4. data/Rakefile +25 -0
  5. data/app/models/share_model.rb +18 -0
  6. data/lib/shareable_models/engine.rb +13 -0
  7. data/lib/shareable_models/models/shareable.rb +149 -0
  8. data/lib/shareable_models/models/sharer.rb +232 -0
  9. data/lib/shareable_models/share.rb +50 -0
  10. data/lib/shareable_models/version.rb +7 -0
  11. data/lib/shareable_models.rb +15 -0
  12. data/spec/dummy/Rakefile +3 -0
  13. data/spec/dummy/app/models/resource.rb +8 -0
  14. data/spec/dummy/app/models/user.rb +8 -0
  15. data/spec/dummy/config/application.rb +17 -0
  16. data/spec/dummy/config/boot.rb +5 -0
  17. data/spec/dummy/config/database.yml +25 -0
  18. data/spec/dummy/config/environment.rb +5 -0
  19. data/spec/dummy/config/environments/test.rb +42 -0
  20. data/spec/dummy/config/secrets.yml +3 -0
  21. data/spec/dummy/config.ru +4 -0
  22. data/spec/dummy/db/development.sqlite3 +0 -0
  23. data/spec/dummy/db/migrate/20150831110800_create_users.rb +8 -0
  24. data/spec/dummy/db/migrate/20150831110900_create_resources.rb +9 -0
  25. data/spec/dummy/db/schema.rb +41 -0
  26. data/spec/dummy/db/test.sqlite3 +0 -0
  27. data/spec/dummy/log/development.log +750 -0
  28. data/spec/dummy/log/test.log +3476 -0
  29. data/spec/dummy/tmp/cache/assets/CC1/7E0/sprockets%2F90700621d32c3e2ae2a4f912a72253ab +0 -0
  30. data/spec/dummy/tmp/cache/assets/CCF/6B0/sprockets%2Fa4652cd2ae14bbb5631a5a6480584905 +0 -0
  31. data/spec/dummy/tmp/cache/assets/D1C/290/sprockets%2Fe7f8e6b08f4ae6b9d49245564016ad27 +0 -0
  32. data/spec/dummy/tmp/cache/assets/D22/3A0/sprockets%2F3810c34c6ed797768acf9533ac9f086c +0 -0
  33. data/spec/dummy/tmp/cache/assets/D40/C10/sprockets%2F13484019fee8aed93d4d7f0342c0fa66 +0 -0
  34. data/spec/dummy/tmp/cache/assets/D6C/9B0/sprockets%2F49fc1144e2a91d5a71afc8da6d16387b +0 -0
  35. data/spec/dummy/tmp/cache/assets/DFD/6A0/sprockets%2Fa3e950d0cbe582637af2dd8caec45ed6 +0 -0
  36. data/spec/dummy/tmp/cache/assets/EEE/C40/sprockets%2Fb9ca5bee4dfcaa86005ef95ffcca5edb +0 -0
  37. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/-KhweS4Wy6LONwXNAAX21MuCb6S5pmcc2At-PRZTnVQ.cache +1 -0
  38. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/2E0BHjS9ga5CVF8p1i0BD342dTagEy6vpdptNnz4yi0.cache +1 -0
  39. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/2SiJB6jwY0ykyL_L-2XcQS_URsqxH2jewKoEcaXdRQI.cache +1 -0
  40. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/2b4LnUroZnwjtmAZ9wAlYXERumGQqZ06CtgLLqLlFZ4.cache +3 -0
  41. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/4yzlzceZQUxV0k8KLBaMF73Bn_2-WuesKO0HeG3c7TI.cache +1 -0
  42. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/57y6b0y31Rr9fh-AS-C-53-Pi2yM7ckkgwYIQeDIvu8.cache +3 -0
  43. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/5BpxDBRXPSEVa8E4oyZEZUcbmyodKDh45wQLjs9j7LA.cache +3 -0
  44. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/6ZWgaX4_0TmoMClNlDesNKcO2HO-goRDGx5iocHbsKo.cache +1 -0
  45. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/7F6McBtYiHW6rgiNy0YCvNTPhfMIOUrq7tsUI5xult8.cache +0 -0
  46. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/7w0mCgW__e7l2wA7VXo4H1RR91pDMz1nJLnqNtCqGvo.cache +1 -0
  47. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/8h7VuyG1HXfABXa1B4--Oi7NfJQvchxYp4XzbT-8aWA.cache +0 -0
  48. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/BRS6CEJIYcJNLwfTJZCdYoBa9bJKVzo4o2X9PlbCDyw.cache +1 -0
  49. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/CV97-tikdhGY51qhiE8LIBXJPysB-0urwrF9u7wOgQA.cache +3 -0
  50. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/E3jkQYtPcnSLkXBBARnRBrW1lTIIVrHyTHO2s689urA.cache +0 -0
  51. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/EKftD-LyK0JTxeLPzIiA90IkUlw-Rfu8hf1K2kIqJpE.cache +2 -0
  52. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/F4fl2U72q21ysGgeNZOyLkVCfw2dvQPjoEghki_D_8A.cache +1 -0
  53. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/F6RTFgWsLUC52NYLMkg2FeNKjgEZhSQS5NV1N3T0rGw.cache +1 -0
  54. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/IPsZefXeGnBC1-g2_BOJHuaCBLP6E60ISZQvjOn2QGc.cache +0 -0
  55. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/J0CARfIsAx4nD1Pk3q1NhG9xCHPOwGj9PaGu8z-ah1g.cache +3 -0
  56. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/Jaayipvdnp-lwqhyJiWdoGDwz5czFOMZLwducjDmfHc.cache +1 -0
  57. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/K5wHnruZLsDmlCHhkWMCagLWPKPM5bxwB2dv037yO5o.cache +1 -0
  58. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/KgWn-QmwEYBvpqByQM41ifUzsmOl40LnAJrCoq_oZcQ.cache +1 -0
  59. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/LAGHT0mMgGhdBGTKU8fpHrmHSQmt5fIoHTTi4kIOUJw.cache +2 -0
  60. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/T3dERBPkMEnJr8fvShtPBsFScRkir0lzJZQkpvrrct0.cache +0 -0
  61. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/UTAd4qlYa57uaORsIWcp6VqcAUkRzixYzIGoEFCvCrY.cache +3 -0
  62. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/UoWufV0QdgwAuVnwDXNWOQfgjGN6U7KnO2_2nXC5gHg.cache +0 -0
  63. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/WpToyjdG3xfOFtl4HJYTpy4_w0U40f7qQWUm7d2SDxg.cache +1 -0
  64. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/XwozjE91sFB4cQGoJUgr2jV1ZuRlvN_HTWgpclrD59A.cache +3 -0
  65. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/YAzUmPkKnALIIJE_0Meb0N5qTlBvVE1ront_B8yecfo.cache +1 -0
  66. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/Yuxa44Ctnn_uPp1nr47NdNwltrmTEp0PleFL3ylXbtM.cache +4 -0
  67. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/ZEUypIim5xuBK679jyb340c39nHQ3EvcgqbmeiHlT0c.cache +2 -0
  68. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/ZQf7Hy4n2V3c-98b9kqTrZAcw3B2TDRF3IKPm9I7VjY.cache +0 -0
  69. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/_SIN6dUlHiJyeUSpOPWAgfLfMrtjGlZgx8ZLEbkjLuQ.cache +1 -0
  70. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/_TUGtF7Vi9blFNr3awt9kgCoid35NdmY8hSHmxuaWbg.cache +2 -0
  71. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/_eb4NkdcbQR63aZySRq7Yv5_w_JReWqG2Q5mYA5u62s.cache +0 -0
  72. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/bPiSNDFYlW5YDua0D-fC4uPRV8hYABbCor092KHNzHM.cache +0 -0
  73. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/d3_09TJ2Uoh7sdjvHWw4jPVF0bObKu065NmgG-EIWcA.cache +0 -0
  74. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/dQTSoOSXec5z_sf_i4UrehHxFRAn4HbRvfh8mUEK2ME.cache +1 -0
  75. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/fVIC-zRTWj6S5SLH_vJQJY-ny5le0IaRQda1YLQQr68.cache +0 -0
  76. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/hpNHCD7sn3wufa6PLUdFP95AS8nwrAaL_b9K4X9_eCE.cache +1 -0
  77. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/huDMU1soBHMNsbUDXnTPbLtqvAEYPe6E-tLL9phYOBY.cache +2 -0
  78. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/i43TdJOVKXtyejasCbHJP4U34FcJ5siCLFWpnPWxxU4.cache +1 -0
  79. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/i4gUJwKC59hdrcb7ZaO09fNtKexVsb67-y3MZ7twsyI.cache +2 -0
  80. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/iynGcjYbH69ZuxdS02RrsK2y33uPjFHCrYHRxxNVn_k.cache +0 -0
  81. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/jR1PEBCdtdy135gPG-zLQDg25XQDP9eDBew7pmhz34k.cache +0 -0
  82. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/jvNKAnuW3TSUu3LxRcqdtmSHgoGiukm1onfXqD6glQA.cache +1 -0
  83. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/kOBlorvGjGDVFhapT1HrAw48XziyeSqexuiKpVhDMac.cache +1 -0
  84. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/mS-IpVGnBSf2F0bGZ7OPpXNCcNMtHmxm7TI1hHVlvps.cache +2 -0
  85. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/pKsozyUJjXN2tIwiCbkGt9AzwLwdpHCYC1Cib-9GBIo.cache +3 -0
  86. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/pP2ApxUxxz-JMscfDHnlZ4Hq4DybYrG_9B4npoDMGAE.cache +2 -0
  87. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/r9dDy892QJeXi_CLvyTWZvGA9idLCbq9X0lnwxr9RZQ.cache +1 -0
  88. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/rLeviNgrP2-MqSDlwBdtz3ciY9n32a5oY9NY3iQupsg.cache +1 -0
  89. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/rf04rP-66AEEH942fvU_IcXRtrpw1_xbvnaxHD2wZGA.cache +2 -0
  90. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/uSWRYxEuSTYl_g1MvbE90G-h747P1dyWDCSZY0z1yzA.cache +2 -0
  91. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/uifNaYvk6KYC76GaHQ9muL_ObOmw4C_CSl9lzOUfnDE.cache +3 -0
  92. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/yOVPU3Y8NJQjJYfkK-l7I_DPfd3T4mIccYc6gY6ODBQ.cache +1 -0
  93. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/yZA3xwYBnfhABCzMVYKNfJMWpJg4HEovQnr5t48Yrf0.cache +1 -0
  94. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/y_XqYDfeQ0fehcC3FNz-qYXXcwOxtSDfsJX1nStC1qU.cache +1 -0
  95. data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/z_w2fR4GzVyUeMzrOEZKQSykA7SSjpdpLtlBgXEgcUA.cache +5 -0
  96. data/spec/fixtures/resources.yml +14 -0
  97. data/spec/fixtures/share_models.yml +8 -0
  98. data/spec/fixtures/users.yml +11 -0
  99. data/spec/models/share_model_spec.rb +148 -0
  100. data/spec/spec_helper.rb +20 -0
  101. metadata +303 -0
@@ -0,0 +1,3476 @@
1
+ Started GET "/assets/fonts/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 08:29:51 +0200
2
+ Started GET "/assets/fonts/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 08:29:51 +0200
3
+ Started GET "/assets/fonts/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 08:29:51 +0200
4
+ Started GET "/assets/fonts/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 08:29:51 +0200
5
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 08:32:49 +0200
6
+ Started GET "/assets/font/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 08:32:49 +0200
7
+ Started GET "/assets/fonts/materialicons-regular.woff" for 127.0.0.1 at 2015-06-12 08:32:49 +0200
8
+ Started GET "/assets/fonts/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 08:32:49 +0200
9
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 08:33:23 +0200
10
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 08:33:23 +0200
11
+ Started GET "/assets/materialicons-regular.woff" for 127.0.0.1 at 2015-06-12 08:33:23 +0200
12
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 08:33:23 +0200
13
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 08:33:41 +0200
14
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 08:33:41 +0200
15
+ Started GET "/assets/MaterialIcons-regular.woff" for 127.0.0.1 at 2015-06-12 08:33:41 +0200
16
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 08:33:41 +0200
17
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 08:33:51 +0200
18
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 08:33:51 +0200
19
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 08:33:51 +0200
20
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 08:33:51 +0200
21
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 08:34:10 +0200
22
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 08:34:11 +0200
23
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 08:34:11 +0200
24
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 08:34:11 +0200
25
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 08:36:08 +0200
26
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 08:36:08 +0200
27
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 08:36:08 +0200
28
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 08:36:08 +0200
29
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 08:36:23 +0200
30
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 08:36:24 +0200
31
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 08:36:24 +0200
32
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 08:36:24 +0200
33
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 08:36:39 +0200
34
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 08:36:39 +0200
35
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 08:36:39 +0200
36
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 08:36:39 +0200
37
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 08:41:11 +0200
38
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 08:41:11 +0200
39
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 08:41:11 +0200
40
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 08:41:11 +0200
41
+ Started GET "/" for 127.0.0.1 at 2015-06-12 08:41:11 +0200
42
+ Processing by HomeController#index as HTML
43
+ Rendered home/index.html.erb within layouts/application (1.8ms)
44
+ Completed 200 OK in 49ms (Views: 48.2ms | ActiveRecord: 0.0ms)
45
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 08:42:12 +0200
46
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 08:42:12 +0200
47
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 08:42:12 +0200
48
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 08:42:12 +0200
49
+ Started GET "/" for 127.0.0.1 at 2015-06-12 08:42:12 +0200
50
+ Processing by HomeController#index as HTML
51
+ Rendered home/index.html.erb within layouts/application (1.1ms)
52
+ Completed 200 OK in 15ms (Views: 15.1ms | ActiveRecord: 0.0ms)
53
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 08:43:14 +0200
54
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 08:43:14 +0200
55
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 08:43:14 +0200
56
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 08:43:14 +0200
57
+ Started GET "/" for 127.0.0.1 at 2015-06-12 08:43:14 +0200
58
+ Processing by HomeController#index as HTML
59
+ Rendered home/index.html.erb within layouts/application (1.0ms)
60
+ Completed 200 OK in 14ms (Views: 13.4ms | ActiveRecord: 0.0ms)
61
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 08:44:51 +0200
62
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 08:44:51 +0200
63
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 08:44:51 +0200
64
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 08:44:51 +0200
65
+ Started GET "/" for 127.0.0.1 at 2015-06-12 08:44:51 +0200
66
+ Processing by HomeController#index as HTML
67
+ Rendered home/index.html.erb within layouts/application (1.2ms)
68
+ Completed 200 OK in 14ms (Views: 14.2ms | ActiveRecord: 0.0ms)
69
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 08:46:58 +0200
70
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 08:46:58 +0200
71
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 08:46:58 +0200
72
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 08:46:58 +0200
73
+ Started GET "/" for 127.0.0.1 at 2015-06-12 08:46:58 +0200
74
+ Processing by HomeController#index as HTML
75
+ Rendered home/index.html.erb within layouts/application (1.1ms)
76
+ Completed 200 OK in 15ms (Views: 14.7ms | ActiveRecord: 0.0ms)
77
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 08:48:28 +0200
78
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 08:48:28 +0200
79
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 08:48:28 +0200
80
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 08:48:29 +0200
81
+ Started GET "/" for 127.0.0.1 at 2015-06-12 08:48:29 +0200
82
+ Processing by HomeController#index as HTML
83
+ Rendered home/index.html.erb within layouts/application (1.9ms)
84
+ Completed 200 OK in 21ms (Views: 20.7ms | ActiveRecord: 0.0ms)
85
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 08:54:24 +0200
86
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 08:54:24 +0200
87
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 08:54:24 +0200
88
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 08:54:24 +0200
89
+ Started GET "/" for 127.0.0.1 at 2015-06-12 08:54:24 +0200
90
+ Processing by HomeController#index as HTML
91
+ Rendered home/index.html.erb within layouts/application (1.3ms)
92
+ Completed 200 OK in 16ms (Views: 16.1ms | ActiveRecord: 0.0ms)
93
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 08:55:42 +0200
94
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 08:55:42 +0200
95
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 08:55:42 +0200
96
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 08:55:42 +0200
97
+ Started GET "/" for 127.0.0.1 at 2015-06-12 08:55:42 +0200
98
+ Processing by HomeController#index as HTML
99
+ Rendered home/index.html.erb within layouts/application (1.7ms)
100
+ Completed 200 OK in 18ms (Views: 17.1ms | ActiveRecord: 0.0ms)
101
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 08:57:11 +0200
102
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 08:57:11 +0200
103
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 08:57:11 +0200
104
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 08:57:11 +0200
105
+ Started GET "/" for 127.0.0.1 at 2015-06-12 08:57:11 +0200
106
+ Processing by HomeController#index as HTML
107
+ Rendered home/index.html.erb within layouts/application (1.1ms)
108
+ Completed 200 OK in 15ms (Views: 14.6ms | ActiveRecord: 0.0ms)
109
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 08:58:41 +0200
110
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 08:58:41 +0200
111
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 08:58:41 +0200
112
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 08:58:41 +0200
113
+ Started GET "/" for 127.0.0.1 at 2015-06-12 08:58:41 +0200
114
+ Processing by HomeController#index as HTML
115
+ Rendered home/index.html.erb within layouts/application (1.2ms)
116
+ Completed 200 OK in 12ms (Views: 12.0ms | ActiveRecord: 0.0ms)
117
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 08:59:20 +0200
118
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 08:59:20 +0200
119
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 08:59:20 +0200
120
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 08:59:20 +0200
121
+ Started GET "/" for 127.0.0.1 at 2015-06-12 08:59:20 +0200
122
+ Processing by HomeController#index as HTML
123
+ Rendered home/index.html.erb within layouts/application (1.0ms)
124
+ Completed 200 OK in 11ms (Views: 10.6ms | ActiveRecord: 0.0ms)
125
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 09:00:04 +0200
126
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 09:00:04 +0200
127
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 09:00:04 +0200
128
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 09:00:04 +0200
129
+ Started GET "/" for 127.0.0.1 at 2015-06-12 09:00:04 +0200
130
+ Processing by HomeController#index as HTML
131
+ Rendered home/index.html.erb within layouts/application (1.2ms)
132
+ Completed 200 OK in 12ms (Views: 12.0ms | ActiveRecord: 0.0ms)
133
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 09:01:25 +0200
134
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 09:01:26 +0200
135
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 09:01:26 +0200
136
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 09:01:26 +0200
137
+ Started GET "/" for 127.0.0.1 at 2015-06-12 09:01:26 +0200
138
+ Processing by HomeController#index as HTML
139
+ Rendered home/index.html.erb within layouts/application (1.1ms)
140
+ Completed 200 OK in 12ms (Views: 11.4ms | ActiveRecord: 0.0ms)
141
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 09:01:39 +0200
142
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 09:01:39 +0200
143
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 09:01:39 +0200
144
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 09:01:39 +0200
145
+ Started GET "/" for 127.0.0.1 at 2015-06-12 09:01:39 +0200
146
+ Processing by HomeController#index as HTML
147
+ Rendered home/index.html.erb within layouts/application (1.1ms)
148
+ Completed 200 OK in 11ms (Views: 10.7ms | ActiveRecord: 0.0ms)
149
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 09:02:26 +0200
150
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 09:02:26 +0200
151
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 09:02:26 +0200
152
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 09:02:26 +0200
153
+ Started GET "/" for 127.0.0.1 at 2015-06-12 09:02:26 +0200
154
+ Processing by HomeController#index as HTML
155
+ Rendered home/index.html.erb within layouts/application (1.1ms)
156
+ Completed 200 OK in 12ms (Views: 11.4ms | ActiveRecord: 0.0ms)
157
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 09:07:28 +0200
158
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 09:07:28 +0200
159
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 09:07:28 +0200
160
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 09:07:28 +0200
161
+ Started GET "/" for 127.0.0.1 at 2015-06-12 09:07:28 +0200
162
+ Processing by HomeController#index as HTML
163
+ Rendered home/index.html.erb within layouts/application (1.8ms)
164
+ Completed 200 OK in 30ms (Views: 29.4ms | ActiveRecord: 0.0ms)
165
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 09:07:42 +0200
166
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 09:07:42 +0200
167
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 09:07:42 +0200
168
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 09:07:42 +0200
169
+ Started GET "/" for 127.0.0.1 at 2015-06-12 09:07:42 +0200
170
+ Processing by HomeController#index as HTML
171
+ Rendered home/index.html.erb within layouts/application (1.1ms)
172
+ Completed 200 OK in 11ms (Views: 10.8ms | ActiveRecord: 0.0ms)
173
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 09:07:51 +0200
174
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 09:07:51 +0200
175
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 09:07:51 +0200
176
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 09:07:51 +0200
177
+ Started GET "/" for 127.0.0.1 at 2015-06-12 09:07:51 +0200
178
+ Processing by HomeController#index as HTML
179
+ Rendered home/index.html.erb within layouts/application (1.2ms)
180
+ Completed 200 OK in 12ms (Views: 11.9ms | ActiveRecord: 0.0ms)
181
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 09:08:34 +0200
182
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 09:08:35 +0200
183
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 09:08:35 +0200
184
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 09:08:35 +0200
185
+ Started GET "/" for 127.0.0.1 at 2015-06-12 09:08:35 +0200
186
+ Processing by HomeController#index as HTML
187
+ Rendered home/index.html.erb within layouts/application (1.8ms)
188
+ Completed 200 OK in 14ms (Views: 13.9ms | ActiveRecord: 0.0ms)
189
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 09:09:31 +0200
190
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 09:09:31 +0200
191
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 09:09:31 +0200
192
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 09:09:31 +0200
193
+ Started GET "/" for 127.0.0.1 at 2015-06-12 09:09:31 +0200
194
+ Processing by HomeController#index as HTML
195
+ Rendered home/index.html.erb within layouts/application (1.1ms)
196
+ Completed 200 OK in 12ms (Views: 11.3ms | ActiveRecord: 0.0ms)
197
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 09:10:00 +0200
198
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 09:10:00 +0200
199
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 09:10:00 +0200
200
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 09:10:00 +0200
201
+ Started GET "/" for 127.0.0.1 at 2015-06-12 09:10:00 +0200
202
+ Processing by HomeController#index as HTML
203
+ Rendered home/index.html.erb within layouts/application (1.1ms)
204
+ Completed 200 OK in 11ms (Views: 10.8ms | ActiveRecord: 0.0ms)
205
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 09:10:27 +0200
206
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 09:10:27 +0200
207
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 09:10:27 +0200
208
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 09:10:27 +0200
209
+ Started GET "/" for 127.0.0.1 at 2015-06-12 09:10:27 +0200
210
+ Processing by HomeController#index as HTML
211
+ Rendered home/index.html.erb within layouts/application (2.6ms)
212
+ Completed 200 OK in 18ms (Views: 17.8ms | ActiveRecord: 0.0ms)
213
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 09:10:42 +0200
214
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 09:10:42 +0200
215
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 09:10:42 +0200
216
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 09:10:42 +0200
217
+ Started GET "/" for 127.0.0.1 at 2015-06-12 09:10:42 +0200
218
+ Processing by HomeController#index as HTML
219
+ Rendered home/index.html.erb within layouts/application (1.1ms)
220
+ Completed 200 OK in 12ms (Views: 12.0ms | ActiveRecord: 0.0ms)
221
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 09:10:52 +0200
222
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 09:10:52 +0200
223
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 09:10:52 +0200
224
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 09:10:52 +0200
225
+ Started GET "/" for 127.0.0.1 at 2015-06-12 09:10:52 +0200
226
+ Processing by HomeController#index as HTML
227
+ Rendered home/index.html.erb within layouts/application (1.3ms)
228
+ Completed 200 OK in 17ms (Views: 16.3ms | ActiveRecord: 0.0ms)
229
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 09:11:41 +0200
230
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 09:11:41 +0200
231
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 09:11:41 +0200
232
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 09:11:41 +0200
233
+ Started GET "/" for 127.0.0.1 at 2015-06-12 09:11:41 +0200
234
+ Processing by HomeController#index as HTML
235
+ Rendered home/index.html.erb within layouts/application (1.8ms)
236
+ Completed 200 OK in 14ms (Views: 13.8ms | ActiveRecord: 0.0ms)
237
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 09:13:52 +0200
238
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 09:13:52 +0200
239
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 09:13:52 +0200
240
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 09:13:52 +0200
241
+ Rendered home/index.html.erb (1.1ms)
242
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 09:14:28 +0200
243
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 09:14:28 +0200
244
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 09:14:28 +0200
245
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 09:14:28 +0200
246
+ Rendered home/index.html.erb (1.1ms)
247
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 09:14:55 +0200
248
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 09:14:55 +0200
249
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 09:14:55 +0200
250
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 09:14:55 +0200
251
+ Rendered home/index.html.erb (1.1ms)
252
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 09:16:03 +0200
253
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 09:16:03 +0200
254
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 09:16:03 +0200
255
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 09:16:03 +0200
256
+ Rendered home/index.html.erb (1.1ms)
257
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 13:43:54 +0200
258
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 13:43:54 +0200
259
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 13:43:54 +0200
260
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 13:43:54 +0200
261
+ Rendered home/index.html.erb (1.7ms)
262
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 13:50:14 +0200
263
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 13:50:14 +0200
264
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 13:50:14 +0200
265
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 13:50:14 +0200
266
+ Rendered home/index.html.erb (2.1ms)
267
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 13:50:38 +0200
268
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 13:50:38 +0200
269
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 13:50:38 +0200
270
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 13:50:38 +0200
271
+ Rendered home/index.html.erb (2.5ms)
272
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 13:51:16 +0200
273
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 13:51:16 +0200
274
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 13:51:16 +0200
275
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 13:51:16 +0200
276
+ Rendered home/index.html.erb (1.6ms)
277
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 17:33:01 +0200
278
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 17:33:01 +0200
279
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 17:33:01 +0200
280
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 17:33:01 +0200
281
+ Rendered home/index.html.erb (1.7ms)
282
+ Rendered home/index.html.erb (0.5ms)
283
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 17:50:41 +0200
284
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 17:50:42 +0200
285
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 17:50:42 +0200
286
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 17:50:42 +0200
287
+ Rendered home/index.html.erb (1.8ms)
288
+ Rendered home/index.html.erb (0.5ms)
289
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 17:52:29 +0200
290
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 17:52:29 +0200
291
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 17:52:29 +0200
292
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 17:52:29 +0200
293
+ Rendered home/index.html.erb (1.1ms)
294
+ Rendered home/index.html.erb (0.4ms)
295
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 18:06:10 +0200
296
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 18:06:10 +0200
297
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 18:06:10 +0200
298
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 18:06:10 +0200
299
+ Rendered home/index.html.erb (1.7ms)
300
+ Rendered home/index.html.erb (0.4ms)
301
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 18:25:24 +0200
302
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 18:25:24 +0200
303
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 18:25:24 +0200
304
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 18:25:24 +0200
305
+ Rendered home/index.html.erb (1.7ms)
306
+ Rendered home/index.html.erb (0.5ms)
307
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-06-12 18:52:27 +0200
308
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-06-12 18:52:27 +0200
309
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-06-12 18:52:27 +0200
310
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-06-12 18:52:27 +0200
311
+ Rendered home/index.html.erb (2.7ms)
312
+ Rendered home/index.html.erb (0.5ms)
313
+ Connecting to database specified by database.yml
314
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-08-27 22:43:03 +0200
315
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-08-27 22:43:03 +0200
316
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-08-27 22:43:03 +0200
317
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-08-27 22:43:03 +0200
318
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-08-27 22:47:15 +0200
319
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-08-27 22:47:15 +0200
320
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-08-27 22:47:15 +0200
321
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-08-27 22:47:15 +0200
322
+ Rendered home/index.html.erb (1.3ms)
323
+ Rendered home/index.html.erb (0.5ms)
324
+ Connecting to database specified by database.yml
325
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-08-27 22:48:01 +0200
326
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-08-27 22:48:01 +0200
327
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-08-27 22:48:01 +0200
328
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-08-27 22:48:01 +0200
329
+ Connecting to database specified by database.yml
330
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-08-27 22:49:01 +0200
331
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-08-27 22:49:01 +0200
332
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-08-27 22:49:02 +0200
333
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-08-27 22:49:02 +0200
334
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-08-27 22:50:48 +0200
335
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-08-27 22:50:48 +0200
336
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-08-27 22:50:48 +0200
337
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-08-27 22:50:48 +0200
338
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-08-27 22:53:12 +0200
339
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-08-27 22:53:12 +0200
340
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-08-27 22:53:12 +0200
341
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-08-27 22:53:12 +0200
342
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-08-27 22:53:57 +0200
343
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-08-27 22:53:58 +0200
344
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-08-27 22:53:58 +0200
345
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-08-27 22:53:58 +0200
346
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-08-27 22:59:48 +0200
347
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-08-27 22:59:49 +0200
348
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-08-27 22:59:49 +0200
349
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-08-27 22:59:49 +0200
350
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-08-27 23:00:17 +0200
351
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-08-27 23:00:17 +0200
352
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-08-27 23:00:17 +0200
353
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-08-27 23:00:17 +0200
354
+ Connecting to database specified by database.yml
355
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-08-27 23:00:58 +0200
356
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-08-27 23:00:58 +0200
357
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-08-27 23:00:58 +0200
358
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-08-27 23:00:58 +0200
359
+ Connecting to database specified by database.yml
360
+ Started GET "/assets/fonts/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-08-27 23:03:35 +0200
361
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-08-27 23:03:35 +0200
362
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-08-27 23:03:35 +0200
363
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-08-27 23:03:35 +0200
364
+ Connecting to database specified by database.yml
365
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-08-27 23:10:24 +0200
366
+ Served asset /MaterialIcons-Regular.eot - 200 OK (6ms)
367
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-08-27 23:10:24 +0200
368
+ Served asset /MaterialIcons-Regular.ttf - 200 OK (4ms)
369
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-08-27 23:10:24 +0200
370
+ Served asset /MaterialIcons-Regular.woff - 200 OK (4ms)
371
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-08-27 23:10:24 +0200
372
+ Served asset /MaterialIcons-Regular.woff2 - 200 OK (4ms)
373
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-08-27 23:29:10 +0200
374
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-08-27 23:29:10 +0200
375
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-08-27 23:29:10 +0200
376
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-08-27 23:29:10 +0200
377
+ Rendered home/index.html.erb (2.7ms)
378
+ Rendered home/index.html.erb (0.5ms)
379
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-08-27 23:29:41 +0200
380
+ Served asset /MaterialIcons-Regular.eot - 200 OK (3ms)
381
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-08-27 23:29:41 +0200
382
+ Served asset /MaterialIcons-Regular.ttf - 200 OK (1ms)
383
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-08-27 23:29:41 +0200
384
+ Served asset /MaterialIcons-Regular.woff - 200 OK (1ms)
385
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-08-27 23:29:41 +0200
386
+ Served asset /MaterialIcons-Regular.woff2 - 200 OK (1ms)
387
+ Started GET "/assets/MaterialIcons-Regular.eot" for 127.0.0.1 at 2015-08-28 19:35:38 +0200
388
+ Started GET "/assets/MaterialIcons-Regular.ttf" for 127.0.0.1 at 2015-08-28 19:35:38 +0200
389
+ Started GET "/assets/MaterialIcons-Regular.woff" for 127.0.0.1 at 2015-08-28 19:35:38 +0200
390
+ Started GET "/assets/MaterialIcons-Regular.woff2" for 127.0.0.1 at 2015-08-28 19:35:38 +0200
391
+ Rendered home/index.html.erb (2.0ms)
392
+ Rendered home/index.html.erb (0.5ms)
393
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
394
+  (0.1ms) select sqlite_version(*)
395
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
396
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
397
+ Migrating to CreateUsers (20150831110800)
398
+  (0.1ms) begin transaction
399
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
400
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150831110800"]]
401
+  (0.8ms) commit transaction
402
+ Migrating to CreateResources (20150831110900)
403
+  (0.1ms) begin transaction
404
+  (0.4ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer)
405
+  (0.1ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
406
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150831110900"]]
407
+  (0.7ms) commit transaction
408
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
409
+  (0.1ms)  SELECT sql
410
+ FROM sqlite_master
411
+ WHERE name='index_resources_on_user_id' AND type='index'
412
+ UNION ALL
413
+ SELECT sql
414
+ FROM sqlite_temp_master
415
+ WHERE name='index_resources_on_user_id' AND type='index'
416
+ 
417
+  (0.3ms) begin transaction
418
+  (0.0ms) rollback transaction
419
+  (0.3ms) begin transaction
420
+  (0.0ms) rollback transaction
421
+  (0.3ms) begin transaction
422
+  (0.1ms) rollback transaction
423
+  (0.3ms) begin transaction
424
+  (0.0ms) rollback transaction
425
+  (0.3ms) begin transaction
426
+  (0.0ms) rollback transaction
427
+  (0.3ms) begin transaction
428
+  (0.1ms) rollback transaction
429
+  (0.3ms) begin transaction
430
+  (0.1ms) rollback transaction
431
+  (0.3ms) begin transaction
432
+  (0.0ms) rollback transaction
433
+  (0.3ms) begin transaction
434
+  (0.1ms) rollback transaction
435
+  (0.3ms) begin transaction
436
+  (0.1ms) rollback transaction
437
+  (0.3ms) begin transaction
438
+  (0.2ms) rollback transaction
439
+  (0.4ms) begin transaction
440
+ Fixture Delete (0.3ms) DELETE FROM "resources"
441
+ Fixture Insert (0.2ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Angel''s resource', 917913520, 681527014)
442
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Jose''s resource', 88627102, 262077316)
443
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Clara''s resource', 713732438, 132733334)
444
+  (8.0ms) rollback transaction
445
+  (0.3ms) begin transaction
446
+  (0.0ms) rollback transaction
447
+  (0.3ms) begin transaction
448
+  (0.0ms) rollback transaction
449
+  (0.3ms) begin transaction
450
+  (0.1ms) rollback transaction
451
+  (0.3ms) begin transaction
452
+  (0.0ms) rollback transaction
453
+  (0.3ms) begin transaction
454
+ Fixture Delete (0.3ms) DELETE FROM "resources"
455
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Angel''s resource', 917913520, 681527014)
456
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Jose''s resource', 88627102, 262077316)
457
+ Fixture Insert (0.0ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Clara''s resource', 713732438, 132733334)
458
+  (0.4ms) rollback transaction
459
+  (9.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
460
+  (0.1ms) select sqlite_version(*)
461
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
462
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
463
+ Migrating to CreateShareModels (20150831102200)
464
+  (0.1ms) begin transaction
465
+  (0.4ms) CREATE TABLE "share_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" integer, "resource_type" varchar, "shared_to_id" integer, "shared_to_type" varchar, "shared_from_id" integer, "shared_from_type" varchar, "edit" boolean)
466
+  (0.1ms) CREATE INDEX "index_share_models_on_resource_type_and_resource_id" ON "share_models" ("resource_type", "resource_id")
467
+  (0.1ms) SELECT sql
468
+ FROM sqlite_master
469
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
470
+ UNION ALL
471
+ SELECT sql
472
+ FROM sqlite_temp_master
473
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
474
+
475
+  (0.1ms) CREATE INDEX "index_share_models_on_shared_to_type_and_shared_to_id" ON "share_models" ("shared_to_type", "shared_to_id")
476
+  (0.1ms) SELECT sql
477
+ FROM sqlite_master
478
+ WHERE name='index_share_models_on_shared_to_type_and_shared_to_id' AND type='index'
479
+ UNION ALL
480
+ SELECT sql
481
+ FROM sqlite_temp_master
482
+ WHERE name='index_share_models_on_shared_to_type_and_shared_to_id' AND type='index'
483
+
484
+  (0.1ms)  SELECT sql
485
+ FROM sqlite_master
486
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
487
+ UNION ALL
488
+ SELECT sql
489
+ FROM sqlite_temp_master
490
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
491
+ 
492
+  (0.1ms) CREATE INDEX "index_share_models_on_shared_from_type_and_shared_from_id" ON "share_models" ("shared_from_type", "shared_from_id")
493
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150831102200"]]
494
+  (0.9ms) commit transaction
495
+ Migrating to CreateUsers (20150831110800)
496
+  (0.1ms) begin transaction
497
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
498
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150831110800"]]
499
+  (0.7ms) commit transaction
500
+ Migrating to CreateResources (20150831110900)
501
+  (0.1ms) begin transaction
502
+  (0.3ms) CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer)
503
+  (0.1ms) CREATE INDEX "index_resources_on_user_id" ON "resources" ("user_id")
504
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150831110900"]]
505
+  (0.7ms) commit transaction
506
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
507
+  (0.1ms)  SELECT sql
508
+ FROM sqlite_master
509
+ WHERE name='index_resources_on_user_id' AND type='index'
510
+ UNION ALL
511
+ SELECT sql
512
+ FROM sqlite_temp_master
513
+ WHERE name='index_resources_on_user_id' AND type='index'
514
+ 
515
+  (0.1ms) SELECT sql
516
+ FROM sqlite_master
517
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
518
+ UNION ALL
519
+ SELECT sql
520
+ FROM sqlite_temp_master
521
+ WHERE name='index_share_models_on_shared_from_type_and_shared_from_id' AND type='index'
522
+
523
+  (0.1ms)  SELECT sql
524
+ FROM sqlite_master
525
+ WHERE name='index_share_models_on_shared_to_type_and_shared_to_id' AND type='index'
526
+ UNION ALL
527
+ SELECT sql
528
+ FROM sqlite_temp_master
529
+ WHERE name='index_share_models_on_shared_to_type_and_shared_to_id' AND type='index'
530
+ 
531
+  (0.1ms) SELECT sql
532
+ FROM sqlite_master
533
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
534
+ UNION ALL
535
+ SELECT sql
536
+ FROM sqlite_temp_master
537
+ WHERE name='index_share_models_on_resource_type_and_resource_id' AND type='index'
538
+
539
+  (0.3ms) begin transaction
540
+ Fixture Delete (0.3ms) DELETE FROM "resources"
541
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Angel''s resource', 917913520, 681527014)
542
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Jose''s resource', 88627102, 262077316)
543
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Clara''s resource', 713732438, 132733334)
544
+ Fixture Delete (0.1ms) DELETE FROM "share_models"
545
+ Fixture Insert (0.1ms) INSERT INTO "share_models" ("edit", "id", "resource_type", "resource_id", "shared_to_type", "shared_to_id", "shared_from_type", "shared_from_id") VALUES ('f', 270405679, 'Resource', 917913520, 'User', 262077316, 'User', 681527014)
546
+ Fixture Delete (0.1ms) DELETE FROM "users"
547
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Angel', 681527014)
548
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Jose', 262077316)
549
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Clara', 132733334)
550
+  (9.1ms) commit transaction
551
+  (0.1ms) begin transaction
552
+ Resource Load (0.2ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
553
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
554
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
555
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
556
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
557
+  (0.1ms) rollback transaction
558
+  (0.3ms) begin transaction
559
+ Fixture Delete (0.3ms) DELETE FROM "resources"
560
+ Fixture Insert (0.2ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Angel''s resource', 917913520, 681527014)
561
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Jose''s resource', 88627102, 262077316)
562
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Clara''s resource', 713732438, 132733334)
563
+ Fixture Delete (0.1ms) DELETE FROM "share_models"
564
+ Fixture Insert (0.1ms) INSERT INTO "share_models" ("edit", "id", "resource_type", "resource_id", "shared_to_type", "shared_to_id", "shared_from_type", "shared_from_id") VALUES ('f', 270405679, 'Resource', 917913520, 'User', 262077316, 'User', 681527014)
565
+ Fixture Delete (0.1ms) DELETE FROM "users"
566
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id") VALUES ('Angel', 681527014)
567
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Jose', 262077316)
568
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Clara', 132733334)
569
+  (1.0ms) commit transaction
570
+  (0.1ms) begin transaction
571
+ Resource Load (0.2ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
572
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
573
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
574
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
575
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
576
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
577
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
578
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
579
+  (0.1ms) rollback transaction
580
+  (0.4ms) begin transaction
581
+ Fixture Delete (0.2ms) DELETE FROM "resources"
582
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Angel''s resource', 917913520, 681527014)
583
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Jose''s resource', 88627102, 262077316)
584
+ Fixture Insert (0.0ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Clara''s resource', 713732438, 132733334)
585
+ Fixture Delete (0.1ms) DELETE FROM "share_models"
586
+ Fixture Insert (0.1ms) INSERT INTO "share_models" ("edit", "id", "resource_type", "resource_id", "shared_to_type", "shared_to_id", "shared_from_type", "shared_from_id") VALUES ('f', 270405679, 'Resource', 917913520, 'User', 262077316, 'User', 681527014)
587
+ Fixture Delete (0.1ms) DELETE FROM "users"
588
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Angel', 681527014)
589
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Jose', 262077316)
590
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Clara', 132733334)
591
+  (0.8ms) commit transaction
592
+  (0.1ms) begin transaction
593
+ Resource Load (0.2ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
594
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
595
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
596
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
597
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
598
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
599
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
600
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
601
+  (0.1ms) rollback transaction
602
+  (0.1ms) begin transaction
603
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
604
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
605
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
606
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
607
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
608
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
609
+  (0.1ms) SAVEPOINT active_record_1
610
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
611
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
612
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
613
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "f"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
614
+  (0.0ms) RELEASE SAVEPOINT active_record_1
615
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
616
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
617
+  (0.4ms) rollback transaction
618
+  (0.1ms) begin transaction
619
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
620
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
621
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
622
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
623
+  (0.0ms) SAVEPOINT active_record_1
624
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
625
+  (0.0ms) RELEASE SAVEPOINT active_record_1
626
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
627
+  (0.0ms) SAVEPOINT active_record_1
628
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
629
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
630
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
631
+ SQL (2.1ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "f"], ["resource_id", 917913520], ["resource_type", "Resource"]]
632
+  (0.1ms) RELEASE SAVEPOINT active_record_1
633
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
634
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
635
+  (0.6ms) rollback transaction
636
+  (0.1ms) begin transaction
637
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
638
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
639
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
640
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
641
+  (0.0ms) SAVEPOINT active_record_1
642
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
643
+  (0.0ms) RELEASE SAVEPOINT active_record_1
644
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
645
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
646
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
647
+  (0.0ms) SAVEPOINT active_record_1
648
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
649
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
650
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
651
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
652
+  (0.0ms) RELEASE SAVEPOINT active_record_1
653
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
654
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
655
+  (0.7ms) rollback transaction
656
+  (0.1ms) begin transaction
657
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
658
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
659
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
660
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
661
+  (0.1ms) SAVEPOINT active_record_1
662
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
663
+  (0.0ms) RELEASE SAVEPOINT active_record_1
664
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
665
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
666
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
667
+  (0.0ms) SAVEPOINT active_record_1
668
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
669
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
670
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
671
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
672
+  (0.1ms) RELEASE SAVEPOINT active_record_1
673
+  (0.0ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
674
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
675
+  (0.6ms) rollback transaction
676
+  (0.1ms) begin transaction
677
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
678
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
679
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
680
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
681
+  (0.0ms) SAVEPOINT active_record_1
682
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
683
+  (0.0ms) RELEASE SAVEPOINT active_record_1
684
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
685
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
686
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
687
+  (0.0ms) SAVEPOINT active_record_1
688
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
689
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
690
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
691
+ SQL (0.4ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
692
+  (0.1ms) RELEASE SAVEPOINT active_record_1
693
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
694
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
695
+  (0.2ms) SAVEPOINT active_record_1
696
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
697
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
698
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
699
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
700
+ SQL (0.2ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
701
+  (0.0ms) RELEASE SAVEPOINT active_record_1
702
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
703
+  (0.8ms) rollback transaction
704
+  (0.1ms) begin transaction
705
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
706
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
707
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
708
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
709
+  (0.0ms) SAVEPOINT active_record_1
710
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
711
+  (0.0ms) RELEASE SAVEPOINT active_record_1
712
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
713
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
714
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
715
+  (0.0ms) SAVEPOINT active_record_1
716
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
717
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
718
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
719
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
720
+  (0.0ms) RELEASE SAVEPOINT active_record_1
721
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
722
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
723
+  (0.0ms) SAVEPOINT active_record_1
724
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
725
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
726
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
727
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
728
+ SQL (0.0ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
729
+  (0.0ms) RELEASE SAVEPOINT active_record_1
730
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
731
+  (0.7ms) rollback transaction
732
+  (0.4ms) begin transaction
733
+ Fixture Delete (0.3ms) DELETE FROM "resources"
734
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Angel''s resource', 917913520, 681527014)
735
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Jose''s resource', 88627102, 262077316)
736
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Clara''s resource', 713732438, 132733334)
737
+ Fixture Delete (0.1ms) DELETE FROM "share_models"
738
+ Fixture Insert (0.1ms) INSERT INTO "share_models" ("edit", "id", "resource_type", "resource_id", "shared_to_type", "shared_to_id", "shared_from_type", "shared_from_id") VALUES ('f', 270405679, 'Resource', 917913520, 'User', 262077316, 'User', 681527014)
739
+ Fixture Delete (0.1ms) DELETE FROM "users"
740
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id") VALUES ('Angel', 681527014)
741
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Jose', 262077316)
742
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Clara', 132733334)
743
+  (0.9ms) commit transaction
744
+  (0.1ms) begin transaction
745
+ Resource Load (0.2ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
746
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
747
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
748
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
749
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
750
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
751
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
752
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
753
+  (0.1ms) rollback transaction
754
+  (0.1ms) begin transaction
755
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
756
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
757
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
758
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
759
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
760
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
761
+  (0.1ms) SAVEPOINT active_record_1
762
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
763
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
764
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
765
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "f"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
766
+  (0.0ms) RELEASE SAVEPOINT active_record_1
767
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
768
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
769
+  (0.5ms) rollback transaction
770
+  (0.0ms) begin transaction
771
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
772
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
773
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
774
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
775
+  (0.0ms) SAVEPOINT active_record_1
776
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
777
+  (0.0ms) RELEASE SAVEPOINT active_record_1
778
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
779
+  (0.0ms) SAVEPOINT active_record_1
780
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
781
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
782
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
783
+ SQL (2.1ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "f"], ["resource_id", 917913520], ["resource_type", "Resource"]]
784
+  (0.1ms) RELEASE SAVEPOINT active_record_1
785
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
786
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
787
+  (0.7ms) rollback transaction
788
+  (0.1ms) begin transaction
789
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
790
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
791
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
792
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
793
+  (0.0ms) SAVEPOINT active_record_1
794
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
795
+  (0.0ms) RELEASE SAVEPOINT active_record_1
796
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
797
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
798
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
799
+  (0.0ms) SAVEPOINT active_record_1
800
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
801
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
802
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
803
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
804
+  (0.0ms) RELEASE SAVEPOINT active_record_1
805
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
806
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
807
+  (0.7ms) rollback transaction
808
+  (0.1ms) begin transaction
809
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
810
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
811
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
812
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
813
+  (0.0ms) SAVEPOINT active_record_1
814
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
815
+  (0.0ms) RELEASE SAVEPOINT active_record_1
816
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
817
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
818
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
819
+  (0.0ms) SAVEPOINT active_record_1
820
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
821
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
822
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
823
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
824
+  (0.0ms) RELEASE SAVEPOINT active_record_1
825
+  (0.0ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
826
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
827
+  (0.7ms) rollback transaction
828
+  (0.1ms) begin transaction
829
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
830
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
831
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
832
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
833
+  (0.0ms) SAVEPOINT active_record_1
834
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
835
+  (0.0ms) RELEASE SAVEPOINT active_record_1
836
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
837
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
838
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
839
+  (0.0ms) SAVEPOINT active_record_1
840
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
841
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
842
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
843
+ SQL (0.4ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
844
+  (0.0ms) RELEASE SAVEPOINT active_record_1
845
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
846
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
847
+  (0.0ms) SAVEPOINT active_record_1
848
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
849
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
850
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
851
+ ShareModel Exists (0.3ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
852
+ SQL (0.1ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
853
+  (0.0ms) RELEASE SAVEPOINT active_record_1
854
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
855
+  (0.7ms) rollback transaction
856
+  (0.1ms) begin transaction
857
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
858
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
859
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
860
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
861
+  (0.1ms) SAVEPOINT active_record_1
862
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
863
+  (0.1ms) RELEASE SAVEPOINT active_record_1
864
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
865
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
866
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
867
+  (0.1ms) SAVEPOINT active_record_1
868
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
869
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
870
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
871
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
872
+  (0.0ms) RELEASE SAVEPOINT active_record_1
873
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
874
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
875
+  (0.1ms) SAVEPOINT active_record_1
876
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
877
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
878
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
879
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
880
+ SQL (0.1ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
881
+  (0.0ms) RELEASE SAVEPOINT active_record_1
882
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
883
+  (0.7ms) rollback transaction
884
+  (0.1ms) begin transaction
885
+ Resource Load (0.2ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
886
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
887
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
888
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
889
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
890
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
891
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 [["resource_id", 917913520], ["resource_type", "Resource"]]
892
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
893
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"]]
894
+  (0.0ms) rollback transaction
895
+  (0.1ms) begin transaction
896
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
897
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
898
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
899
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
900
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
901
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
902
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
903
+  (0.1ms) rollback transaction
904
+  (0.0ms) begin transaction
905
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
906
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
907
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
908
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
909
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
910
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
911
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
912
+  (0.0ms) rollback transaction
913
+  (0.0ms) begin transaction
914
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
915
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
916
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
917
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
918
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
919
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
920
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
921
+  (0.1ms) rollback transaction
922
+  (0.4ms) begin transaction
923
+ Fixture Delete (0.3ms) DELETE FROM "resources"
924
+ Fixture Insert (0.2ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Angel''s resource', 917913520, 681527014)
925
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Jose''s resource', 88627102, 262077316)
926
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Clara''s resource', 713732438, 132733334)
927
+ Fixture Delete (0.1ms) DELETE FROM "share_models"
928
+ Fixture Insert (0.1ms) INSERT INTO "share_models" ("edit", "id", "resource_type", "resource_id", "shared_to_type", "shared_to_id", "shared_from_type", "shared_from_id") VALUES ('f', 270405679, 'Resource', 917913520, 'User', 262077316, 'User', 681527014)
929
+ Fixture Delete (0.1ms) DELETE FROM "users"
930
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id") VALUES ('Angel', 681527014)
931
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id") VALUES ('Jose', 262077316)
932
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id") VALUES ('Clara', 132733334)
933
+  (1.0ms) commit transaction
934
+  (0.0ms) begin transaction
935
+ Resource Load (0.2ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
936
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
937
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
938
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
939
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
940
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
941
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
942
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
943
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
944
+  (0.1ms) rollback transaction
945
+  (0.1ms) begin transaction
946
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
947
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
948
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
949
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
950
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
951
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
952
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
953
+  (0.1ms) SAVEPOINT active_record_1
954
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
955
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
956
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
957
+ SQL (0.4ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "f"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
958
+  (0.1ms) RELEASE SAVEPOINT active_record_1
959
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
960
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
961
+  (0.6ms) rollback transaction
962
+  (0.1ms) begin transaction
963
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
964
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
965
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
966
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
967
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
968
+  (0.0ms) SAVEPOINT active_record_1
969
+ SQL (0.3ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
970
+  (0.0ms) RELEASE SAVEPOINT active_record_1
971
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
972
+  (0.0ms) SAVEPOINT active_record_1
973
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
974
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
975
+ ShareModel Exists (0.3ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
976
+ SQL (1.1ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "f"], ["resource_id", 917913520], ["resource_type", "Resource"]]
977
+  (0.1ms) RELEASE SAVEPOINT active_record_1
978
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
979
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
980
+  (0.7ms) rollback transaction
981
+  (0.1ms) begin transaction
982
+ Resource Load (0.2ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
983
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
984
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
985
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
986
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
987
+  (0.0ms) SAVEPOINT active_record_1
988
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
989
+  (0.0ms) RELEASE SAVEPOINT active_record_1
990
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
991
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
992
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
993
+  (0.0ms) SAVEPOINT active_record_1
994
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
995
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
996
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
997
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
999
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
1000
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1001
+  (0.7ms) rollback transaction
1002
+  (0.1ms) begin transaction
1003
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1004
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1005
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1006
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1007
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1008
+  (0.0ms) SAVEPOINT active_record_1
1009
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1010
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1011
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1012
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1013
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
1014
+  (0.0ms) SAVEPOINT active_record_1
1015
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1016
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1017
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1018
+ SQL (0.5ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
1019
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1020
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
1021
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1022
+  (0.7ms) rollback transaction
1023
+  (0.1ms) begin transaction
1024
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1025
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1026
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1027
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1028
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1029
+  (0.0ms) SAVEPOINT active_record_1
1030
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1031
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1032
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1033
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1034
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
1035
+  (0.1ms) SAVEPOINT active_record_1
1036
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1037
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1038
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1039
+ SQL (0.5ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
1040
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1041
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1042
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
1043
+  (0.1ms) SAVEPOINT active_record_1
1044
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1045
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1046
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1047
+ ShareModel Exists (0.4ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1048
+ SQL (0.1ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
1049
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1050
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1051
+  (0.7ms) rollback transaction
1052
+  (0.1ms) begin transaction
1053
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1054
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1055
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1056
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1057
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1058
+  (0.0ms) SAVEPOINT active_record_1
1059
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1060
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1061
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1062
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1063
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
1064
+  (0.0ms) SAVEPOINT active_record_1
1065
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1066
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1067
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1068
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
1069
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1070
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1071
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
1072
+  (0.0ms) SAVEPOINT active_record_1
1073
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1074
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1075
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1076
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1077
+ SQL (0.1ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
1078
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1079
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1080
+  (0.8ms) rollback transaction
1081
+  (0.1ms) begin transaction
1082
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1083
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1084
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1085
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1086
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1087
+  (0.1ms) rollback transaction
1088
+  (0.1ms) begin transaction
1089
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1090
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1091
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1092
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1093
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1094
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1095
+  (0.1ms) rollback transaction
1096
+  (0.1ms) begin transaction
1097
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1098
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1099
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1100
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1101
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1102
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1103
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 [["resource_id", 917913520], ["resource_type", "Resource"]]
1104
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1105
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"]]
1106
+  (0.1ms) rollback transaction
1107
+  (0.1ms) begin transaction
1108
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1109
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1110
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1111
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1112
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1113
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1114
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1115
+  (0.0ms) rollback transaction
1116
+  (0.0ms) begin transaction
1117
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1118
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1119
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1120
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1121
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1122
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1123
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1124
+  (0.1ms) rollback transaction
1125
+  (0.0ms) begin transaction
1126
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1127
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1128
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1129
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1130
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1131
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1132
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1133
+  (0.0ms) rollback transaction
1134
+  (0.0ms) begin transaction
1135
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1136
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1137
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1138
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1139
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1140
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1141
+  (0.1ms) rollback transaction
1142
+  (0.3ms) begin transaction
1143
+ Fixture Delete (0.2ms) DELETE FROM "resources"
1144
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Angel''s resource', 917913520, 681527014)
1145
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Jose''s resource', 88627102, 262077316)
1146
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Clara''s resource', 713732438, 132733334)
1147
+ Fixture Delete (0.1ms) DELETE FROM "share_models"
1148
+ Fixture Insert (0.1ms) INSERT INTO "share_models" ("edit", "id", "resource_type", "resource_id", "shared_to_type", "shared_to_id", "shared_from_type", "shared_from_id") VALUES ('f', 270405679, 'Resource', 917913520, 'User', 262077316, 'User', 681527014)
1149
+ Fixture Delete (0.1ms) DELETE FROM "users"
1150
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Angel', 681527014)
1151
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Jose', 262077316)
1152
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Clara', 132733334)
1153
+  (8.3ms) commit transaction
1154
+  (0.1ms) begin transaction
1155
+ Resource Load (0.2ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1156
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1157
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1158
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1159
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1160
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1161
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
1162
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1163
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
1164
+  (0.1ms) rollback transaction
1165
+  (0.0ms) begin transaction
1166
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1167
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1168
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1169
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1170
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1171
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
1172
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1173
+  (8.2ms) SAVEPOINT active_record_1
1174
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1175
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1176
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1177
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "f"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
1178
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1179
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
1180
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1181
+  (0.4ms) rollback transaction
1182
+  (0.1ms) begin transaction
1183
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1184
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1185
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1186
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1187
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1188
+  (0.1ms) SAVEPOINT active_record_1
1189
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1190
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1191
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1192
+  (0.1ms) SAVEPOINT active_record_1
1193
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1194
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1195
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1196
+ SQL (0.9ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "f"], ["resource_id", 917913520], ["resource_type", "Resource"]]
1197
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1198
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
1199
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1200
+  (0.7ms) rollback transaction
1201
+  (0.1ms) begin transaction
1202
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1203
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1204
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1205
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1206
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1207
+  (0.0ms) SAVEPOINT active_record_1
1208
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1209
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1210
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1211
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1212
+ ShareModel Load (0.2ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
1213
+  (0.1ms) SAVEPOINT active_record_1
1214
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1215
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1216
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1217
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
1218
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1219
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
1220
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1221
+  (0.8ms) rollback transaction
1222
+  (0.1ms) begin transaction
1223
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1224
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1225
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1226
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1227
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1228
+  (0.0ms) SAVEPOINT active_record_1
1229
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1230
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1231
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1232
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1233
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
1234
+  (0.1ms) SAVEPOINT active_record_1
1235
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1236
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1237
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1238
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
1239
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1240
+  (0.0ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
1241
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1242
+  (0.7ms) rollback transaction
1243
+  (0.1ms) begin transaction
1244
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1245
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1246
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1247
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1248
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1249
+  (0.0ms) SAVEPOINT active_record_1
1250
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1251
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1252
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1253
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1254
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
1255
+  (0.1ms) SAVEPOINT active_record_1
1256
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1257
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1258
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1259
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
1260
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1261
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1262
+ ShareModel Load (0.2ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
1263
+  (0.2ms) SAVEPOINT active_record_1
1264
+ Resource Load (0.2ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1265
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1266
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1267
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1268
+ SQL (0.1ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
1269
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1270
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1271
+  (0.7ms) rollback transaction
1272
+  (0.1ms) begin transaction
1273
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1274
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1275
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1276
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1277
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1278
+  (0.0ms) SAVEPOINT active_record_1
1279
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1280
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1281
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1282
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1283
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
1284
+  (0.1ms) SAVEPOINT active_record_1
1285
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1286
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1287
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1288
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
1289
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1290
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1291
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
1292
+  (0.0ms) SAVEPOINT active_record_1
1293
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1294
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1295
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1296
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1297
+ SQL (0.1ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
1298
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1299
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1300
+  (0.7ms) rollback transaction
1301
+  (0.1ms) begin transaction
1302
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1303
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1304
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1305
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1306
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1307
+  (0.1ms) rollback transaction
1308
+  (0.1ms) begin transaction
1309
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1310
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1311
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1312
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1313
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1314
+  (0.1ms) rollback transaction
1315
+  (0.1ms) begin transaction
1316
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1317
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1318
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1319
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1320
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1321
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1322
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 [["resource_id", 917913520], ["resource_type", "Resource"]]
1323
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1324
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"]]
1325
+  (0.1ms) rollback transaction
1326
+  (0.1ms) begin transaction
1327
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1328
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1329
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1330
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1331
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1332
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1333
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1334
+  (0.1ms) rollback transaction
1335
+  (0.0ms) begin transaction
1336
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1337
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1338
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1339
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1340
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1341
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1342
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1343
+  (0.0ms) rollback transaction
1344
+  (0.0ms) begin transaction
1345
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1346
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1347
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1348
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1349
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1350
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1351
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1352
+  (0.1ms) rollback transaction
1353
+  (0.0ms) begin transaction
1354
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1355
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1356
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1357
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1358
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1359
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1360
+  (0.0ms) rollback transaction
1361
+  (0.3ms) begin transaction
1362
+ Fixture Delete (0.3ms) DELETE FROM "resources"
1363
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Angel''s resource', 917913520, 681527014)
1364
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Jose''s resource', 88627102, 262077316)
1365
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Clara''s resource', 713732438, 132733334)
1366
+ Fixture Delete (0.1ms) DELETE FROM "share_models"
1367
+ Fixture Insert (0.1ms) INSERT INTO "share_models" ("edit", "id", "resource_type", "resource_id", "shared_to_type", "shared_to_id", "shared_from_type", "shared_from_id") VALUES ('f', 270405679, 'Resource', 917913520, 'User', 262077316, 'User', 681527014)
1368
+ Fixture Delete (0.1ms) DELETE FROM "users"
1369
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Angel', 681527014)
1370
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Jose', 262077316)
1371
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Clara', 132733334)
1372
+  (8.1ms) commit transaction
1373
+  (0.1ms) begin transaction
1374
+ Resource Load (0.2ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1375
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1376
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1377
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1378
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1379
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1380
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
1381
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1382
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
1383
+  (0.1ms) rollback transaction
1384
+  (0.1ms) begin transaction
1385
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1386
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1387
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1388
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1389
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1390
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
1391
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1392
+  (0.1ms) SAVEPOINT active_record_1
1393
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1394
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1395
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1396
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "f"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
1397
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1398
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
1399
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1400
+  (0.4ms) rollback transaction
1401
+  (0.1ms) begin transaction
1402
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1403
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1404
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1405
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1406
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1407
+  (0.0ms) SAVEPOINT active_record_1
1408
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1409
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1410
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1411
+  (0.0ms) SAVEPOINT active_record_1
1412
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1413
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1414
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1415
+ SQL (0.9ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "f"], ["resource_id", 917913520], ["resource_type", "Resource"]]
1416
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1417
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
1418
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1419
+  (0.7ms) rollback transaction
1420
+  (0.1ms) begin transaction
1421
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1422
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1423
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1424
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1425
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1426
+  (0.0ms) SAVEPOINT active_record_1
1427
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1428
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1429
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1430
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1431
+ ShareModel Load (0.2ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
1432
+  (0.0ms) SAVEPOINT active_record_1
1433
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1434
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1435
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1436
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
1437
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1438
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
1439
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1440
+  (0.8ms) rollback transaction
1441
+  (0.1ms) begin transaction
1442
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1443
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1444
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1445
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1446
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1447
+  (0.0ms) SAVEPOINT active_record_1
1448
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1449
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1450
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1451
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1452
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
1453
+  (0.1ms) SAVEPOINT active_record_1
1454
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1455
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1456
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1457
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
1458
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1459
+  (0.0ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
1460
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1461
+  (0.7ms) rollback transaction
1462
+  (0.1ms) begin transaction
1463
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1464
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1465
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1466
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1467
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1468
+  (0.0ms) SAVEPOINT active_record_1
1469
+ SQL (0.3ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1470
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1471
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1472
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1473
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
1474
+  (0.1ms) SAVEPOINT active_record_1
1475
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1476
+ ShareModel Exists (0.4ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1477
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1478
+ SQL (0.4ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
1479
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1480
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1481
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
1482
+  (0.1ms) SAVEPOINT active_record_1
1483
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1484
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1485
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1486
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1487
+ SQL (0.1ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
1488
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1489
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1490
+  (0.7ms) rollback transaction
1491
+  (0.1ms) begin transaction
1492
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1493
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1494
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1495
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1496
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1497
+  (0.0ms) SAVEPOINT active_record_1
1498
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1499
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1500
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1501
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1502
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
1503
+  (0.0ms) SAVEPOINT active_record_1
1504
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1505
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1506
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1507
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
1508
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1509
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1510
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
1511
+  (0.0ms) SAVEPOINT active_record_1
1512
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1513
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1514
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1515
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1516
+ SQL (0.1ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
1517
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1518
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1519
+  (0.7ms) rollback transaction
1520
+  (0.1ms) begin transaction
1521
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1522
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1523
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1524
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1525
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1526
+  (0.1ms) rollback transaction
1527
+  (0.1ms) begin transaction
1528
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1529
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1530
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1531
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1532
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1533
+  (0.0ms) rollback transaction
1534
+  (0.0ms) begin transaction
1535
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1536
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1537
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1538
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1539
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1540
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1541
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 [["resource_id", 917913520], ["resource_type", "Resource"]]
1542
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1543
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"]]
1544
+  (0.0ms) rollback transaction
1545
+  (0.0ms) begin transaction
1546
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1547
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1548
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1549
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1550
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1551
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1552
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1553
+  (0.0ms) rollback transaction
1554
+  (0.0ms) begin transaction
1555
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1556
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1557
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1558
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1559
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1560
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1561
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1562
+  (0.2ms) rollback transaction
1563
+  (0.1ms) begin transaction
1564
+ Resource Load (0.3ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1565
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1566
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1567
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1568
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1569
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1570
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1571
+  (0.1ms) rollback transaction
1572
+  (0.0ms) begin transaction
1573
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1574
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1575
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1576
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1577
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1578
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1579
+  (0.1ms) rollback transaction
1580
+  (0.5ms) begin transaction
1581
+ Fixture Delete (0.3ms) DELETE FROM "resources"
1582
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Angel''s resource', 917913520, 681527014)
1583
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Jose''s resource', 88627102, 262077316)
1584
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Clara''s resource', 713732438, 132733334)
1585
+ Fixture Delete (0.1ms) DELETE FROM "share_models"
1586
+ Fixture Insert (0.1ms) INSERT INTO "share_models" ("edit", "id", "resource_type", "resource_id", "shared_to_type", "shared_to_id", "shared_from_type", "shared_from_id") VALUES ('f', 270405679, 'Resource', 917913520, 'User', 262077316, 'User', 681527014)
1587
+ Fixture Delete (0.1ms) DELETE FROM "users"
1588
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id") VALUES ('Angel', 681527014)
1589
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Jose', 262077316)
1590
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Clara', 132733334)
1591
+  (8.8ms) commit transaction
1592
+  (0.1ms) begin transaction
1593
+ Resource Load (0.3ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1594
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1595
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1596
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1597
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1598
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1599
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
1600
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1601
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
1602
+  (0.1ms) rollback transaction
1603
+  (0.1ms) begin transaction
1604
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1605
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1606
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1607
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1608
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1609
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
1610
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1611
+  (0.1ms) SAVEPOINT active_record_1
1612
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1613
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1614
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1615
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "f"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
1616
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1617
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
1618
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1619
+  (0.5ms) rollback transaction
1620
+  (0.1ms) begin transaction
1621
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1622
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1623
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1624
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1625
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1626
+  (0.1ms) SAVEPOINT active_record_1
1627
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1628
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1629
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1630
+  (0.0ms) SAVEPOINT active_record_1
1631
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1632
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1633
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1634
+ SQL (1.1ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "f"], ["resource_id", 917913520], ["resource_type", "Resource"]]
1635
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1636
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
1637
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1638
+  (0.6ms) rollback transaction
1639
+  (0.1ms) begin transaction
1640
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1641
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1642
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1643
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1644
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1645
+  (0.1ms) SAVEPOINT active_record_1
1646
+ SQL (0.3ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1647
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1648
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1649
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1650
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
1651
+  (0.0ms) SAVEPOINT active_record_1
1652
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1653
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1654
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1655
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
1656
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1657
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
1658
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1659
+  (0.7ms) rollback transaction
1660
+  (0.1ms) begin transaction
1661
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1662
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1663
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1664
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1665
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1666
+  (0.0ms) SAVEPOINT active_record_1
1667
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1668
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1669
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1670
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1671
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
1672
+  (0.1ms) SAVEPOINT active_record_1
1673
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1674
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1675
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1676
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
1677
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1678
+  (0.0ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
1679
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1680
+  (0.7ms) rollback transaction
1681
+  (0.1ms) begin transaction
1682
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1683
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1684
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1685
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1686
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1687
+  (0.0ms) SAVEPOINT active_record_1
1688
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1689
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1690
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1691
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1692
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
1693
+  (0.0ms) SAVEPOINT active_record_1
1694
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1695
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1696
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1697
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
1698
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1699
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1700
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
1701
+  (0.1ms) SAVEPOINT active_record_1
1702
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1703
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1704
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1705
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1706
+ SQL (0.1ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
1707
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1708
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1709
+  (0.8ms) rollback transaction
1710
+  (0.1ms) begin transaction
1711
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1712
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1713
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1714
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1715
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1716
+  (0.1ms) SAVEPOINT active_record_1
1717
+ SQL (0.6ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1718
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1719
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1720
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1721
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
1722
+  (0.0ms) SAVEPOINT active_record_1
1723
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1724
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1725
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1726
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
1727
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1728
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1729
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
1730
+  (0.0ms) SAVEPOINT active_record_1
1731
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1732
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1733
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1734
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1735
+ SQL (0.1ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
1736
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1737
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1738
+  (0.6ms) rollback transaction
1739
+  (0.1ms) begin transaction
1740
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1741
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1742
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1743
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1744
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1745
+  (0.0ms) rollback transaction
1746
+  (0.0ms) begin transaction
1747
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1748
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1749
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1750
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1751
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1752
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
1753
+  (0.0ms) SAVEPOINT active_record_1
1754
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1755
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1756
+  (0.5ms) rollback transaction
1757
+  (0.1ms) begin transaction
1758
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1759
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1760
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1761
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1762
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1763
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1764
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 [["resource_id", 917913520], ["resource_type", "Resource"]]
1765
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1766
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"]]
1767
+  (0.0ms) rollback transaction
1768
+  (0.1ms) begin transaction
1769
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1770
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1771
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1772
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1773
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1774
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1775
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1776
+  (0.0ms) rollback transaction
1777
+  (0.1ms) begin transaction
1778
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1779
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1780
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1781
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1782
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1783
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1784
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1785
+  (0.1ms) rollback transaction
1786
+  (0.1ms) begin transaction
1787
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1788
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1789
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1790
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1791
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1792
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1793
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1794
+  (0.0ms) rollback transaction
1795
+  (0.0ms) begin transaction
1796
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1797
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1798
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1799
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1800
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1801
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1802
+  (0.1ms) rollback transaction
1803
+  (0.4ms) begin transaction
1804
+ Fixture Delete (0.2ms) DELETE FROM "resources"
1805
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Angel''s resource', 917913520, 681527014)
1806
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Jose''s resource', 88627102, 262077316)
1807
+ Fixture Insert (0.0ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Clara''s resource', 713732438, 132733334)
1808
+ Fixture Delete (0.1ms) DELETE FROM "share_models"
1809
+ Fixture Insert (0.1ms) INSERT INTO "share_models" ("edit", "id", "resource_type", "resource_id", "shared_to_type", "shared_to_id", "shared_from_type", "shared_from_id") VALUES ('f', 270405679, 'Resource', 917913520, 'User', 262077316, 'User', 681527014)
1810
+ Fixture Delete (0.1ms) DELETE FROM "users"
1811
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Angel', 681527014)
1812
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Jose', 262077316)
1813
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Clara', 132733334)
1814
+  (8.2ms) commit transaction
1815
+  (0.1ms) begin transaction
1816
+ Resource Load (0.2ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1817
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1818
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1819
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1820
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1821
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1822
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
1823
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1824
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
1825
+  (0.1ms) rollback transaction
1826
+  (0.1ms) begin transaction
1827
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1828
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1829
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1830
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1831
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1832
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
1833
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1834
+  (7.8ms) SAVEPOINT active_record_1
1835
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1836
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1837
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1838
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "f"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
1839
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1840
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
1841
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1842
+  (0.4ms) rollback transaction
1843
+  (0.1ms) begin transaction
1844
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1845
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1846
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1847
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1848
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1849
+  (0.1ms) SAVEPOINT active_record_1
1850
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1851
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1852
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1853
+  (0.0ms) SAVEPOINT active_record_1
1854
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1855
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1856
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1857
+ SQL (1.0ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "f"], ["resource_id", 917913520], ["resource_type", "Resource"]]
1858
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1859
+  (0.3ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
1860
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1861
+  (0.8ms) rollback transaction
1862
+  (0.1ms) begin transaction
1863
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1864
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1865
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1866
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1867
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1868
+  (0.0ms) SAVEPOINT active_record_1
1869
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1870
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1871
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1872
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1873
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
1874
+  (0.0ms) SAVEPOINT active_record_1
1875
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1876
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1877
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1878
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
1879
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1880
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
1881
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1882
+  (0.7ms) rollback transaction
1883
+  (0.1ms) begin transaction
1884
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1885
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1886
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1887
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1888
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1889
+  (0.0ms) SAVEPOINT active_record_1
1890
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1891
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1892
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1893
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1894
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
1895
+  (0.1ms) SAVEPOINT active_record_1
1896
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1897
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1898
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1899
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
1900
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1901
+  (0.0ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
1902
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1903
+  (0.6ms) rollback transaction
1904
+  (0.1ms) begin transaction
1905
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1906
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1907
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1908
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1909
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1910
+  (0.0ms) SAVEPOINT active_record_1
1911
+ SQL (0.3ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1912
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1913
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1914
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1915
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
1916
+  (0.2ms) SAVEPOINT active_record_1
1917
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1918
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1919
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1920
+ SQL (0.4ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
1921
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1922
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1923
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
1924
+  (0.1ms) SAVEPOINT active_record_1
1925
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1926
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1927
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1928
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1929
+ SQL (0.3ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
1930
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1931
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1932
+  (0.7ms) rollback transaction
1933
+  (0.1ms) begin transaction
1934
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1935
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1936
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1937
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1938
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1939
+  (0.0ms) SAVEPOINT active_record_1
1940
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1941
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1942
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1943
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1944
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
1945
+  (0.0ms) SAVEPOINT active_record_1
1946
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1947
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1948
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1949
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
1950
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1951
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1952
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
1953
+  (0.0ms) SAVEPOINT active_record_1
1954
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1955
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1956
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1957
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
1958
+ SQL (0.1ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
1959
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1960
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1961
+  (0.8ms) rollback transaction
1962
+  (0.1ms) begin transaction
1963
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1964
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1965
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1966
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1967
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1968
+  (0.1ms) rollback transaction
1969
+  (0.1ms) begin transaction
1970
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1971
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1972
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1973
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1974
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1975
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
1976
+  (0.0ms) SAVEPOINT active_record_1
1977
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
1978
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1979
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
1980
+  (0.4ms) rollback transaction
1981
+  (0.1ms) begin transaction
1982
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1983
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1984
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1985
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1986
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1987
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1988
+  (0.2ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 [["resource_id", 917913520], ["resource_type", "Resource"]]
1989
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
1990
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"]]
1991
+  (0.1ms) rollback transaction
1992
+  (0.1ms) begin transaction
1993
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
1994
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1995
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
1996
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
1997
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
1998
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
1999
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2000
+  (0.1ms) rollback transaction
2001
+  (0.2ms) begin transaction
2002
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2003
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2004
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2005
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2006
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2007
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2008
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2009
+  (0.1ms) rollback transaction
2010
+  (0.0ms) begin transaction
2011
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2012
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2013
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2014
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2015
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2016
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2017
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2018
+  (0.0ms) rollback transaction
2019
+  (0.0ms) begin transaction
2020
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2021
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2022
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2023
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2024
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2025
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2026
+  (0.1ms) rollback transaction
2027
+  (0.3ms) begin transaction
2028
+ Fixture Delete (0.2ms) DELETE FROM "resources"
2029
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Angel''s resource', 917913520, 681527014)
2030
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Jose''s resource', 88627102, 262077316)
2031
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Clara''s resource', 713732438, 132733334)
2032
+ Fixture Delete (0.1ms) DELETE FROM "share_models"
2033
+ Fixture Insert (0.1ms) INSERT INTO "share_models" ("edit", "id", "resource_type", "resource_id", "shared_to_type", "shared_to_id", "shared_from_type", "shared_from_id") VALUES ('f', 270405679, 'Resource', 917913520, 'User', 262077316, 'User', 681527014)
2034
+ Fixture Delete (0.1ms) DELETE FROM "users"
2035
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id") VALUES ('Angel', 681527014)
2036
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id") VALUES ('Jose', 262077316)
2037
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id") VALUES ('Clara', 132733334)
2038
+  (8.1ms) commit transaction
2039
+  (0.1ms) begin transaction
2040
+ Resource Load (0.2ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2041
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2042
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2043
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2044
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2045
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2046
+  (0.2ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
2047
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2048
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2049
+  (0.1ms) rollback transaction
2050
+  (0.1ms) begin transaction
2051
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2052
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2053
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2054
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2055
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2056
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2057
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2058
+  (0.1ms) SAVEPOINT active_record_1
2059
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2060
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2061
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2062
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "f"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
2063
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2064
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2065
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2066
+  (0.6ms) rollback transaction
2067
+  (0.1ms) begin transaction
2068
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2069
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2070
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2071
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2072
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2073
+  (0.0ms) SAVEPOINT active_record_1
2074
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2075
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2076
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2077
+  (0.1ms) SAVEPOINT active_record_1
2078
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2079
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2080
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2081
+ SQL (1.0ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "f"], ["resource_id", 917913520], ["resource_type", "Resource"]]
2082
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2083
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
2084
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2085
+  (1.2ms) rollback transaction
2086
+  (0.1ms) begin transaction
2087
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2088
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2089
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2090
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2091
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2092
+  (0.1ms) SAVEPOINT active_record_1
2093
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2094
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2095
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2096
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2097
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
2098
+  (0.0ms) SAVEPOINT active_record_1
2099
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2100
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2101
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2102
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
2103
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2104
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2105
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2106
+  (0.6ms) rollback transaction
2107
+  (0.1ms) begin transaction
2108
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2109
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2110
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2111
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2112
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2113
+  (0.1ms) SAVEPOINT active_record_1
2114
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2115
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2116
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2117
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2118
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
2119
+  (0.0ms) SAVEPOINT active_record_1
2120
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2121
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2122
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2123
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
2124
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2125
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
2126
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2127
+  (0.8ms) rollback transaction
2128
+  (0.1ms) begin transaction
2129
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2130
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2131
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2132
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2133
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2134
+  (0.0ms) SAVEPOINT active_record_1
2135
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2136
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2137
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2138
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2139
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
2140
+  (0.0ms) SAVEPOINT active_record_1
2141
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2142
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2143
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2144
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
2145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2146
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2147
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
2148
+  (0.1ms) SAVEPOINT active_record_1
2149
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2150
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2151
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2152
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2153
+ SQL (0.1ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
2154
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2155
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2156
+  (0.6ms) rollback transaction
2157
+  (0.1ms) begin transaction
2158
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2159
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2160
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2161
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2162
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2163
+  (0.0ms) SAVEPOINT active_record_1
2164
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2165
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2166
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2167
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2168
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
2169
+  (0.0ms) SAVEPOINT active_record_1
2170
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2171
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2172
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2173
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
2174
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2175
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2176
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
2177
+  (0.0ms) SAVEPOINT active_record_1
2178
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2179
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2180
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2181
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2182
+ SQL (0.1ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
2183
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2184
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2185
+  (0.7ms) rollback transaction
2186
+  (0.0ms) begin transaction
2187
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2188
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2189
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2190
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2191
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2192
+  (0.1ms) rollback transaction
2193
+  (0.0ms) begin transaction
2194
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2195
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2196
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2197
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2198
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2199
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
2200
+  (0.0ms) SAVEPOINT active_record_1
2201
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2202
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2203
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2204
+  (0.4ms) rollback transaction
2205
+  (0.0ms) begin transaction
2206
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2207
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2208
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2209
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2210
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2211
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2212
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 [["resource_id", 917913520], ["resource_type", "Resource"]]
2213
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2214
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"]]
2215
+  (0.0ms) rollback transaction
2216
+  (0.0ms) begin transaction
2217
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2218
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2219
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2220
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2221
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2222
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2223
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2224
+  (0.1ms) rollback transaction
2225
+  (0.1ms) begin transaction
2226
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2227
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2228
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2229
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2230
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2231
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2232
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2233
+  (0.1ms) rollback transaction
2234
+  (0.1ms) begin transaction
2235
+ Resource Load (0.2ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2236
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2237
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2238
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2239
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2240
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2241
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2242
+  (0.1ms) rollback transaction
2243
+  (0.0ms) begin transaction
2244
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2245
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2246
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2247
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2248
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2249
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
2250
+  (0.1ms) SAVEPOINT active_record_1
2251
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2252
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2253
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2254
+  (0.4ms) rollback transaction
2255
+  (0.3ms) begin transaction
2256
+ Fixture Delete (0.4ms) DELETE FROM "resources"
2257
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Angel''s resource', 917913520, 681527014)
2258
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Jose''s resource', 88627102, 262077316)
2259
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Clara''s resource', 713732438, 132733334)
2260
+ Fixture Delete (0.2ms) DELETE FROM "share_models"
2261
+ Fixture Insert (0.1ms) INSERT INTO "share_models" ("edit", "id", "resource_type", "resource_id", "shared_to_type", "shared_to_id", "shared_from_type", "shared_from_id") VALUES ('f', 270405679, 'Resource', 917913520, 'User', 262077316, 'User', 681527014)
2262
+ Fixture Delete (0.1ms) DELETE FROM "users"
2263
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id") VALUES ('Angel', 681527014)
2264
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id") VALUES ('Jose', 262077316)
2265
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id") VALUES ('Clara', 132733334)
2266
+  (9.1ms) commit transaction
2267
+  (0.1ms) begin transaction
2268
+ Resource Load (0.4ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2269
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2270
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2271
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2272
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2273
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2274
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
2275
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2276
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2277
+  (0.1ms) rollback transaction
2278
+  (0.1ms) begin transaction
2279
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2280
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2281
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2282
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2283
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2284
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2285
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2286
+  (0.1ms) SAVEPOINT active_record_1
2287
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2288
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2289
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2290
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "f"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
2291
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2292
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2293
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2294
+  (0.4ms) rollback transaction
2295
+  (0.1ms) begin transaction
2296
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2297
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2298
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2299
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2300
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2301
+  (0.0ms) SAVEPOINT active_record_1
2302
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2303
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2304
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2305
+  (0.0ms) SAVEPOINT active_record_1
2306
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2307
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2308
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2309
+ SQL (1.0ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "f"], ["resource_id", 917913520], ["resource_type", "Resource"]]
2310
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2311
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
2312
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2313
+  (0.6ms) rollback transaction
2314
+  (0.1ms) begin transaction
2315
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2316
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2317
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2318
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2319
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2320
+  (0.0ms) SAVEPOINT active_record_1
2321
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2322
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2323
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2324
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2325
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
2326
+  (0.0ms) SAVEPOINT active_record_1
2327
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2328
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2329
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2330
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
2331
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2332
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2333
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2334
+  (1.1ms) rollback transaction
2335
+  (0.1ms) begin transaction
2336
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2337
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2338
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2339
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2340
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2341
+  (0.0ms) SAVEPOINT active_record_1
2342
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2343
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2344
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2345
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2346
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
2347
+  (0.0ms) SAVEPOINT active_record_1
2348
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2349
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2350
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2351
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
2352
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2353
+  (0.0ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 [["resource_id", 917913520], ["resource_type", "Resource"]]
2354
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2355
+  (0.8ms) rollback transaction
2356
+  (0.1ms) begin transaction
2357
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2358
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2359
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2360
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2361
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2362
+  (0.0ms) SAVEPOINT active_record_1
2363
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2364
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2365
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2366
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2367
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
2368
+  (0.0ms) SAVEPOINT active_record_1
2369
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2370
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2371
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2372
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
2373
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2374
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2375
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
2376
+  (0.0ms) SAVEPOINT active_record_1
2377
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2378
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2379
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2380
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2381
+ SQL (0.1ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
2382
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2383
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2384
+  (0.7ms) rollback transaction
2385
+  (0.1ms) begin transaction
2386
+ Resource Load (0.6ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2387
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2388
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2389
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2390
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2391
+  (0.0ms) SAVEPOINT active_record_1
2392
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2393
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2394
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2395
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2396
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
2397
+  (0.0ms) SAVEPOINT active_record_1
2398
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2399
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2400
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2401
+ SQL (0.4ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
2402
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2403
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2404
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
2405
+  (0.0ms) SAVEPOINT active_record_1
2406
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2407
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2408
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2409
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2410
+ SQL (0.1ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
2411
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2412
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2413
+  (0.6ms) rollback transaction
2414
+  (0.1ms) begin transaction
2415
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2416
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2417
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2418
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2419
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2420
+  (0.1ms) rollback transaction
2421
+  (0.1ms) begin transaction
2422
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2423
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2424
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2425
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2426
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2427
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
2428
+  (0.0ms) SAVEPOINT active_record_1
2429
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2430
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2431
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2432
+  (0.5ms) rollback transaction
2433
+  (0.1ms) begin transaction
2434
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2435
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2436
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2437
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2438
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2439
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2440
+  (0.1ms) SELECT COUNT(*) FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 [["resource_id", 917913520], ["resource_type", "Resource"]]
2441
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2442
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"]]
2443
+  (0.0ms) rollback transaction
2444
+  (0.0ms) begin transaction
2445
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2446
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2447
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2448
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2449
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2450
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2451
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2452
+  (0.0ms) rollback transaction
2453
+  (0.0ms) begin transaction
2454
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2455
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2456
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2457
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2458
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2459
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2460
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2461
+  (0.0ms) rollback transaction
2462
+  (0.0ms) begin transaction
2463
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2464
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2465
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2466
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2467
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2468
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."edit" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"]]
2469
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2470
+  (0.1ms) rollback transaction
2471
+  (0.0ms) begin transaction
2472
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2473
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2474
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2475
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2476
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2477
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
2478
+  (0.0ms) SAVEPOINT active_record_1
2479
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2480
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2481
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2482
+  (0.4ms) rollback transaction
2483
+  (0.1ms) begin transaction
2484
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2485
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2486
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2487
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
2488
+  (0.1ms) rollback transaction
2489
+  (0.3ms) begin transaction
2490
+ Fixture Delete (0.3ms) DELETE FROM "resources"
2491
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Angel''s resource', 917913520, 681527014)
2492
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Jose''s resource', 88627102, 262077316)
2493
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Clara''s resource', 713732438, 132733334)
2494
+ Fixture Delete (0.1ms) DELETE FROM "share_models"
2495
+ Fixture Insert (0.1ms) INSERT INTO "share_models" ("edit", "id", "resource_type", "resource_id", "shared_to_type", "shared_to_id", "shared_from_type", "shared_from_id") VALUES ('f', 270405679, 'Resource', 917913520, 'User', 262077316, 'User', 681527014)
2496
+ Fixture Delete (0.1ms) DELETE FROM "users"
2497
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id") VALUES ('Angel', 681527014)
2498
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "id") VALUES ('Jose', 262077316)
2499
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Clara', 132733334)
2500
+  (8.1ms) commit transaction
2501
+  (0.1ms) begin transaction
2502
+ Resource Load (0.2ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2503
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2504
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2505
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2506
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2507
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2508
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2509
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2510
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2511
+  (0.1ms) rollback transaction
2512
+  (0.1ms) begin transaction
2513
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2514
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2515
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2516
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2517
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2518
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2519
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2520
+  (0.1ms) SAVEPOINT active_record_1
2521
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2522
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2523
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2524
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "f"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
2525
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2526
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2527
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2528
+  (0.4ms) rollback transaction
2529
+  (0.1ms) begin transaction
2530
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2531
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2532
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2533
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2534
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2535
+  (0.0ms) SAVEPOINT active_record_1
2536
+ SQL (0.3ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2537
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2538
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2539
+  (0.0ms) SAVEPOINT active_record_1
2540
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2541
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2542
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2543
+ SQL (1.0ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "f"], ["resource_id", 917913520], ["resource_type", "Resource"]]
2544
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2545
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2546
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2547
+  (0.7ms) rollback transaction
2548
+  (0.1ms) begin transaction
2549
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2550
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2551
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2552
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2553
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2554
+  (0.0ms) SAVEPOINT active_record_1
2555
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2556
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2557
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2558
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2559
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
2560
+  (0.0ms) SAVEPOINT active_record_1
2561
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2562
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2563
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2564
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
2565
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2566
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2567
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2568
+  (0.7ms) rollback transaction
2569
+  (0.1ms) begin transaction
2570
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2571
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2572
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2573
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2574
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2575
+  (0.0ms) SAVEPOINT active_record_1
2576
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2577
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2578
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2579
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2580
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
2581
+  (0.0ms) SAVEPOINT active_record_1
2582
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2583
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2584
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2585
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
2586
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2587
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2588
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2589
+  (0.7ms) rollback transaction
2590
+  (0.1ms) begin transaction
2591
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2592
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2593
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2594
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2595
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2596
+  (0.1ms) SAVEPOINT active_record_1
2597
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2598
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2599
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2600
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2601
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
2602
+  (0.0ms) SAVEPOINT active_record_1
2603
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2604
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2605
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2606
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
2607
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2608
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2609
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
2610
+  (0.0ms) SAVEPOINT active_record_1
2611
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2612
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2613
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2614
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2615
+ SQL (0.1ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
2616
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2617
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2618
+  (0.7ms) rollback transaction
2619
+  (0.1ms) begin transaction
2620
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2621
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2622
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2623
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2624
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2625
+  (0.0ms) SAVEPOINT active_record_1
2626
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2627
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2628
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2629
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2630
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
2631
+  (0.0ms) SAVEPOINT active_record_1
2632
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2633
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2634
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2635
+ SQL (0.4ms) INSERT INTO "share_models" ("shared_from_id", "shared_from_type", "shared_to_id", "shared_to_type", "edit", "resource_id", "resource_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_from_id", 681527014], ["shared_from_type", "User"], ["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["resource_id", 917913520], ["resource_type", "Resource"]]
2636
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2637
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2638
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
2639
+  (0.1ms) SAVEPOINT active_record_1
2640
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2641
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2642
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2643
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2644
+ SQL (0.1ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
2645
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2646
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2647
+  (0.7ms) rollback transaction
2648
+  (0.1ms) begin transaction
2649
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2650
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2651
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2652
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2653
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2654
+  (0.0ms) rollback transaction
2655
+  (0.1ms) begin transaction
2656
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2657
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2658
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2659
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2660
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2661
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
2662
+  (0.0ms) SAVEPOINT active_record_1
2663
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2664
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2665
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2666
+  (0.6ms) rollback transaction
2667
+  (0.1ms) begin transaction
2668
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2669
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2670
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2671
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2672
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2673
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2674
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"]]
2675
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2676
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"]]
2677
+  (0.1ms) rollback transaction
2678
+  (0.0ms) begin transaction
2679
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2680
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2681
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2682
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2683
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2684
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2685
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2686
+  (0.1ms) rollback transaction
2687
+  (0.1ms) begin transaction
2688
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2689
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2690
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2691
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2692
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2693
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2694
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2695
+  (0.1ms) rollback transaction
2696
+  (0.1ms) begin transaction
2697
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2698
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2699
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2700
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2701
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2702
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2703
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2704
+  (0.0ms) rollback transaction
2705
+  (0.0ms) begin transaction
2706
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2707
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2708
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2709
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2710
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2711
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
2712
+  (0.0ms) SAVEPOINT active_record_1
2713
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2714
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2715
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2716
+  (0.4ms) rollback transaction
2717
+  (0.1ms) begin transaction
2718
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2719
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2720
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2721
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
2722
+  (0.1ms) rollback transaction
2723
+  (0.3ms) begin transaction
2724
+ Fixture Delete (0.5ms) DELETE FROM "resources"
2725
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Angel''s resource', 917913520, 681527014)
2726
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Jose''s resource', 88627102, 262077316)
2727
+ Fixture Insert (0.0ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Clara''s resource', 713732438, 132733334)
2728
+ Fixture Delete (0.1ms) DELETE FROM "share_models"
2729
+ Fixture Insert (0.1ms) INSERT INTO "share_models" ("edit", "id", "resource_type", "resource_id", "shared_to_type", "shared_to_id", "shared_from_type", "shared_from_id") VALUES ('f', 270405679, 'Resource', 917913520, 'User', 262077316, 'User', 681527014)
2730
+ Fixture Delete (0.1ms) DELETE FROM "users"
2731
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Angel', 681527014)
2732
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Jose', 262077316)
2733
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Clara', 132733334)
2734
+  (8.4ms) commit transaction
2735
+  (0.1ms) begin transaction
2736
+ Resource Load (0.2ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2737
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2738
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2739
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2740
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2741
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2742
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2743
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2744
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2745
+  (0.1ms) rollback transaction
2746
+  (0.1ms) begin transaction
2747
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2748
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2749
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2750
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2751
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2752
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2753
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2754
+  (0.1ms) SAVEPOINT active_record_1
2755
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2756
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2757
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2758
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "f"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
2759
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2760
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2761
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2762
+  (0.4ms) rollback transaction
2763
+  (0.1ms) begin transaction
2764
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2765
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2766
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2767
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2768
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2769
+  (0.0ms) SAVEPOINT active_record_1
2770
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2771
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2772
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2773
+  (0.0ms) SAVEPOINT active_record_1
2774
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2775
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2776
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2777
+ SQL (1.0ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "f"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
2778
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2779
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2780
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2781
+  (0.7ms) rollback transaction
2782
+  (0.1ms) begin transaction
2783
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2784
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2785
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2786
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2787
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2788
+  (0.0ms) SAVEPOINT active_record_1
2789
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2790
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2791
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2792
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2793
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
2794
+  (0.0ms) SAVEPOINT active_record_1
2795
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2796
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2797
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2798
+ SQL (0.4ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
2799
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2800
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2801
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2802
+  (0.7ms) rollback transaction
2803
+  (0.1ms) begin transaction
2804
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2805
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2806
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2807
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2808
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2809
+  (0.0ms) SAVEPOINT active_record_1
2810
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2811
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2812
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2813
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2814
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
2815
+  (0.0ms) SAVEPOINT active_record_1
2816
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2817
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2818
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2819
+ SQL (0.5ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
2820
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2821
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2822
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2823
+  (0.8ms) rollback transaction
2824
+  (0.1ms) begin transaction
2825
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2826
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2827
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2828
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2829
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2830
+  (0.1ms) SAVEPOINT active_record_1
2831
+ SQL (0.3ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2832
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2833
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2834
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2835
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
2836
+  (0.0ms) SAVEPOINT active_record_1
2837
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2838
+ ShareModel Exists (0.3ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2839
+ ShareModel Exists (0.3ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2840
+ SQL (0.8ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
2841
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2842
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2843
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
2844
+  (0.0ms) SAVEPOINT active_record_1
2845
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2846
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2847
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2848
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2849
+ SQL (0.1ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
2850
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2851
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2852
+  (0.7ms) rollback transaction
2853
+  (0.1ms) begin transaction
2854
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2855
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2856
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2857
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2858
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2859
+  (0.0ms) SAVEPOINT active_record_1
2860
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2861
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2862
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2863
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2864
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
2865
+  (0.0ms) SAVEPOINT active_record_1
2866
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2867
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2868
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2869
+ SQL (0.4ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
2870
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2871
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2872
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
2873
+  (0.0ms) SAVEPOINT active_record_1
2874
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2875
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2876
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2877
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2878
+ SQL (0.1ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
2879
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2880
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2881
+  (0.6ms) rollback transaction
2882
+  (0.1ms) begin transaction
2883
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2884
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2885
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2886
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2887
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2888
+  (0.0ms) rollback transaction
2889
+  (0.0ms) begin transaction
2890
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2891
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2892
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2893
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2894
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2895
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
2896
+  (0.0ms) SAVEPOINT active_record_1
2897
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2898
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2899
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2900
+  (0.5ms) rollback transaction
2901
+  (0.1ms) begin transaction
2902
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2903
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2904
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2905
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2906
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2907
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2908
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"]]
2909
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2910
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"]]
2911
+  (0.1ms) rollback transaction
2912
+  (0.0ms) begin transaction
2913
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2914
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2915
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2916
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2917
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2918
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2919
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2920
+  (0.2ms) rollback transaction
2921
+  (0.1ms) begin transaction
2922
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2923
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2924
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2925
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2926
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2927
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2928
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2929
+  (0.1ms) rollback transaction
2930
+  (0.1ms) begin transaction
2931
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2932
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2933
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2934
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2935
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2936
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2937
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2938
+  (0.1ms) rollback transaction
2939
+  (0.0ms) begin transaction
2940
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2941
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2942
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2943
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2944
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2945
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
2946
+  (0.1ms) SAVEPOINT active_record_1
2947
+ SQL (0.3ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
2948
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2949
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
2950
+  (0.5ms) rollback transaction
2951
+  (0.1ms) begin transaction
2952
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2953
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2954
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2955
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
2956
+  (0.1ms) rollback transaction
2957
+  (0.4ms) begin transaction
2958
+ Fixture Delete (0.3ms) DELETE FROM "resources"
2959
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Angel''s resource', 917913520, 681527014)
2960
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Jose''s resource', 88627102, 262077316)
2961
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Clara''s resource', 713732438, 132733334)
2962
+ Fixture Delete (0.1ms) DELETE FROM "share_models"
2963
+ Fixture Insert (0.1ms) INSERT INTO "share_models" ("edit", "id", "resource_type", "resource_id", "shared_to_type", "shared_to_id", "shared_from_type", "shared_from_id") VALUES ('f', 270405679, 'Resource', 917913520, 'User', 262077316, 'User', 681527014)
2964
+ Fixture Delete (0.1ms) DELETE FROM "users"
2965
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Angel', 681527014)
2966
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Jose', 262077316)
2967
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Clara', 132733334)
2968
+  (8.3ms) commit transaction
2969
+  (0.1ms) begin transaction
2970
+ Resource Load (0.3ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2971
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2972
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2973
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2974
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2975
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2976
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2977
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2978
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2979
+  (0.1ms) rollback transaction
2980
+  (0.1ms) begin transaction
2981
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2982
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2983
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
2984
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
2985
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2986
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2987
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2988
+  (0.1ms) SAVEPOINT active_record_1
2989
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
2990
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2991
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
2992
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "f"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
2993
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2994
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
2995
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
2996
+  (0.5ms) rollback transaction
2997
+  (0.1ms) begin transaction
2998
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
2999
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3000
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3001
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3002
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
3003
+  (0.1ms) SAVEPOINT active_record_1
3004
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
3005
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3006
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3007
+  (0.1ms) SAVEPOINT active_record_1
3008
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3009
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3010
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3011
+ SQL (1.0ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "f"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
3012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3013
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
3014
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3015
+  (0.6ms) rollback transaction
3016
+  (0.1ms) begin transaction
3017
+ Resource Load (0.2ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3018
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3019
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3020
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3021
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
3022
+  (0.0ms) SAVEPOINT active_record_1
3023
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
3024
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3025
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3026
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3027
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
3028
+  (0.0ms) SAVEPOINT active_record_1
3029
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3030
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3031
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3032
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
3033
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3034
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
3035
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3036
+  (0.6ms) rollback transaction
3037
+  (0.1ms) begin transaction
3038
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3039
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3040
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3041
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3042
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
3043
+  (0.0ms) SAVEPOINT active_record_1
3044
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
3045
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3046
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3047
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3048
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
3049
+  (0.0ms) SAVEPOINT active_record_1
3050
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3051
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3052
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3053
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
3054
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3055
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
3056
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3057
+  (0.7ms) rollback transaction
3058
+  (0.1ms) begin transaction
3059
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3060
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3061
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3062
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3063
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
3064
+  (0.0ms) SAVEPOINT active_record_1
3065
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
3066
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3067
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3068
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3069
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
3070
+  (0.1ms) SAVEPOINT active_record_1
3071
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3072
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3073
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3074
+ SQL (0.4ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
3075
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3076
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3077
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
3078
+  (0.1ms) SAVEPOINT active_record_1
3079
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3080
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3081
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3082
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3083
+ SQL (0.1ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
3084
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3085
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3086
+  (1.0ms) rollback transaction
3087
+  (0.1ms) begin transaction
3088
+ Resource Load (0.3ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3089
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3090
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3091
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3092
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
3093
+  (0.1ms) SAVEPOINT active_record_1
3094
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
3095
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3096
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3097
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3098
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
3099
+  (0.0ms) SAVEPOINT active_record_1
3100
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3101
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3102
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3103
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
3104
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3105
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3106
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
3107
+  (0.0ms) SAVEPOINT active_record_1
3108
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3109
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3110
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3111
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3112
+ SQL (0.0ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
3113
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3114
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3115
+  (0.8ms) rollback transaction
3116
+  (0.1ms) begin transaction
3117
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3118
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3119
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3120
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3121
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3122
+  (0.1ms) rollback transaction
3123
+  (0.1ms) begin transaction
3124
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3125
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3126
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3127
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3128
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3129
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
3130
+  (0.0ms) SAVEPOINT active_record_1
3131
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
3132
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3133
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
3134
+  (0.4ms) rollback transaction
3135
+  (0.1ms) begin transaction
3136
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3137
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3138
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3139
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3140
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3141
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
3142
+  (0.0ms) SAVEPOINT active_record_1
3143
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
3144
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3145
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
3146
+  (0.4ms) rollback transaction
3147
+  (0.0ms) begin transaction
3148
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3149
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3150
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3151
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3152
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3153
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3154
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"]]
3155
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3156
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"]]
3157
+  (0.1ms) rollback transaction
3158
+  (0.0ms) begin transaction
3159
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3160
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3161
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3162
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3163
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3164
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3165
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3166
+  (0.2ms) rollback transaction
3167
+  (0.1ms) begin transaction
3168
+ Resource Load (0.3ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3169
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3170
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3171
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3172
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3173
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3174
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3175
+  (0.0ms) rollback transaction
3176
+  (0.1ms) begin transaction
3177
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3178
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3179
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3180
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3181
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3182
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3183
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3184
+  (0.1ms) rollback transaction
3185
+  (0.1ms) begin transaction
3186
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3187
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3188
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3189
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3190
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3191
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
3192
+  (0.0ms) SAVEPOINT active_record_1
3193
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
3194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3195
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
3196
+  (0.5ms) rollback transaction
3197
+  (0.0ms) begin transaction
3198
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3199
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3200
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3201
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3202
+  (0.0ms) rollback transaction
3203
+  (0.1ms) begin transaction
3204
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3205
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3206
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3207
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
3208
+  (0.0ms) rollback transaction
3209
+  (0.0ms) begin transaction
3210
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3211
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3212
+  (0.2ms) rollback transaction
3213
+  (0.4ms) begin transaction
3214
+ Fixture Delete (0.3ms) DELETE FROM "resources"
3215
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Angel''s resource', 917913520, 681527014)
3216
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Jose''s resource', 88627102, 262077316)
3217
+ Fixture Insert (0.1ms) INSERT INTO "resources" ("name", "id", "user_id") VALUES ('Clara''s resource', 713732438, 132733334)
3218
+ Fixture Delete (0.1ms) DELETE FROM "share_models"
3219
+ Fixture Insert (0.1ms) INSERT INTO "share_models" ("edit", "id", "resource_type", "resource_id", "shared_to_type", "shared_to_id", "shared_from_type", "shared_from_id") VALUES ('f', 270405679, 'Resource', 917913520, 'User', 262077316, 'User', 681527014)
3220
+ Fixture Delete (0.1ms) DELETE FROM "users"
3221
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Angel', 681527014)
3222
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Jose', 262077316)
3223
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "id") VALUES ('Clara', 132733334)
3224
+  (8.8ms) commit transaction
3225
+  (0.1ms) begin transaction
3226
+ Resource Load (0.2ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3227
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3228
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3229
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3230
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3231
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3232
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
3233
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3234
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
3235
+  (0.1ms) rollback transaction
3236
+  (0.1ms) begin transaction
3237
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3238
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3239
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3240
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3241
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3242
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
3243
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3244
+  (0.1ms) SAVEPOINT active_record_1
3245
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3246
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3247
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3248
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "f"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
3249
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3250
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
3251
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3252
+  (0.5ms) rollback transaction
3253
+  (0.1ms) begin transaction
3254
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3255
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3256
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3257
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3258
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
3259
+  (0.0ms) SAVEPOINT active_record_1
3260
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
3261
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3262
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3263
+  (0.0ms) SAVEPOINT active_record_1
3264
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3265
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3266
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3267
+ SQL (0.9ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "f"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
3268
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3269
+ ShareModel Exists (0.3ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
3270
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3271
+  (0.8ms) rollback transaction
3272
+  (0.1ms) begin transaction
3273
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3274
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3275
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3276
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3277
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
3278
+  (0.0ms) SAVEPOINT active_record_1
3279
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
3280
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3281
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3282
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3283
+ ShareModel Load (0.2ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
3284
+  (0.0ms) SAVEPOINT active_record_1
3285
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3286
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3287
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3288
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
3289
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3290
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
3291
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3292
+  (0.6ms) rollback transaction
3293
+  (0.1ms) begin transaction
3294
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3295
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3296
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3297
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3298
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
3299
+  (0.0ms) SAVEPOINT active_record_1
3300
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
3301
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3302
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3303
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3304
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
3305
+  (0.0ms) SAVEPOINT active_record_1
3306
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3307
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3308
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3309
+ SQL (0.3ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
3310
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3311
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"]]
3312
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3313
+  (0.7ms) rollback transaction
3314
+  (0.1ms) begin transaction
3315
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3316
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3317
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3318
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3319
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
3320
+  (0.0ms) SAVEPOINT active_record_1
3321
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
3322
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3323
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3324
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3325
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
3326
+  (0.0ms) SAVEPOINT active_record_1
3327
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3328
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3329
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3330
+ SQL (0.4ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
3331
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3332
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3333
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
3334
+  (0.1ms) SAVEPOINT active_record_1
3335
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3336
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3337
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3338
+ ShareModel Exists (0.3ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3339
+ SQL (0.1ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
3340
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3341
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3342
+  (0.7ms) rollback transaction
3343
+  (0.1ms) begin transaction
3344
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3345
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3346
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3347
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3348
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
3349
+  (0.1ms) SAVEPOINT active_record_1
3350
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
3351
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3352
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3353
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3354
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
3355
+  (0.0ms) SAVEPOINT active_record_1
3356
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3357
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3358
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3359
+ SQL (0.5ms) INSERT INTO "share_models" ("shared_to_id", "shared_to_type", "resource_id", "resource_type", "edit", "shared_from_id", "shared_from_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["shared_to_id", 132733334], ["shared_to_type", "User"], ["resource_id", 917913520], ["resource_type", "Resource"], ["edit", "t"], ["shared_from_id", 681527014], ["shared_from_type", "User"]]
3360
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3361
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3362
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."shared_from_id" = ? AND "share_models"."shared_from_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_from_id", 681527014], ["shared_from_type", "User"]]
3363
+  (0.0ms) SAVEPOINT active_record_1
3364
+ Resource Load (0.0ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3365
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3366
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3367
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE ("share_models"."resource_id" = 917913520 AND "share_models"."id" != 270405680 AND "share_models"."resource_type" = 'Resource' AND "share_models"."shared_to_id" = 132733334 AND "share_models"."shared_to_type" = 'User') LIMIT 1
3368
+ SQL (0.1ms) UPDATE "share_models" SET "edit" = ? WHERE "share_models"."id" = ? [["edit", "f"], ["id", 270405680]]
3369
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3370
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 132733334], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3371
+  (0.7ms) rollback transaction
3372
+  (0.1ms) begin transaction
3373
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3374
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3375
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3376
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3377
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3378
+  (0.0ms) rollback transaction
3379
+  (0.1ms) begin transaction
3380
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3381
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3382
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3383
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3384
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3385
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
3386
+  (0.0ms) SAVEPOINT active_record_1
3387
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
3388
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3389
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
3390
+  (0.3ms) rollback transaction
3391
+  (0.0ms) begin transaction
3392
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3393
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3394
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3395
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3396
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3397
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
3398
+  (0.1ms) SAVEPOINT active_record_1
3399
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
3400
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3401
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
3402
+  (0.4ms) rollback transaction
3403
+  (0.0ms) begin transaction
3404
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3405
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3406
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3407
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3408
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3409
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3410
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"]]
3411
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3412
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"]]
3413
+  (0.1ms) rollback transaction
3414
+  (0.0ms) begin transaction
3415
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3416
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3417
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3418
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3419
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3420
+ ShareModel Exists (0.2ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3421
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3422
+  (0.1ms) rollback transaction
3423
+  (0.1ms) begin transaction
3424
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3425
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3426
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3427
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3428
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3429
+ ShareModel Exists (0.1ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3430
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3431
+  (0.1ms) rollback transaction
3432
+  (0.0ms) begin transaction
3433
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3434
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3435
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3436
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3437
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3438
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3439
+ ShareModel Exists (0.0ms) SELECT 1 AS one FROM "share_models" WHERE "share_models"."shared_to_id" = ? AND "share_models"."shared_to_type" = ? AND "share_models"."edit" = ? AND "share_models"."edit" = ? AND "share_models"."resource_type" = 'Resource' AND "share_models"."resource_id" = 917913520 LIMIT 1 [["shared_to_id", 262077316], ["shared_to_type", "User"], ["edit", "t"], ["edit", "t"]]
3440
+  (0.1ms) rollback transaction
3441
+  (0.0ms) begin transaction
3442
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3443
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3444
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3445
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3446
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3447
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
3448
+  (0.0ms) SAVEPOINT active_record_1
3449
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
3450
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3451
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
3452
+  (0.4ms) rollback transaction
3453
+  (0.1ms) begin transaction
3454
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3455
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3456
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 262077316]]
3457
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3458
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3459
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 262077316 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
3460
+  (0.0ms) SAVEPOINT active_record_1
3461
+ SQL (0.2ms) DELETE FROM "share_models" WHERE "share_models"."id" = ? [["id", 270405679]]
3462
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3463
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? [["resource_id", 917913520], ["resource_type", "Resource"]]
3464
+  (0.4ms) rollback transaction
3465
+  (0.1ms) begin transaction
3466
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3467
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3468
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3469
+ ShareModel Load (0.1ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
3470
+  (0.1ms) rollback transaction
3471
+  (0.1ms) begin transaction
3472
+ Resource Load (0.1ms) SELECT "resources".* FROM "resources" WHERE "resources"."id" = ? LIMIT 1 [["id", 917913520]]
3473
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 132733334]]
3474
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 681527014]]
3475
+ ShareModel Load (0.0ms) SELECT "share_models".* FROM "share_models" WHERE "share_models"."resource_id" = ? AND "share_models"."resource_type" = ? AND "share_models"."shared_to_type" = 'User' AND "share_models"."shared_to_id" = 132733334 LIMIT 1 [["resource_id", 917913520], ["resource_type", "Resource"]]
3476
+  (0.1ms) rollback transaction