iugusdk 1.0.0.alpha.1 → 1.0.0.alpha.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. data/app/controllers/iugu/account_controller.rb +24 -28
  2. data/app/controllers/iugu/account_domains_controller.rb +35 -5
  3. data/app/controllers/iugu/account_roles_controller.rb +2 -5
  4. data/app/controllers/iugu/account_users_controller.rb +6 -12
  5. data/app/controllers/iugu/confirmations_controller.rb +1 -0
  6. data/app/controllers/iugu/invitations_controller.rb +17 -23
  7. data/app/controllers/iugu/omniauth_callbacks_controller.rb +3 -1
  8. data/app/controllers/iugu/passwords_controller.rb +1 -0
  9. data/app/controllers/iugu/registrations_controller.rb +11 -0
  10. data/app/controllers/iugu/sessions_controller.rb +1 -0
  11. data/app/controllers/iugu/settings_controller.rb +14 -0
  12. data/app/mailers/iugu_mailer.rb +2 -2
  13. data/app/models/account.rb +15 -0
  14. data/app/models/account_domain.rb +25 -2
  15. data/app/models/user.rb +19 -3
  16. data/app/models/user_invitation.rb +15 -2
  17. data/app/views/iugu/account_domains/index.html.haml +50 -25
  18. data/app/views/iugu/account_domains/instructions.html.haml +3 -0
  19. data/app/views/iugu/account_users/index.html.haml +4 -2
  20. data/app/views/iugu/invitations/new.html.haml +19 -5
  21. data/app/views/iugu/registrations/new.html.haml +4 -1
  22. data/app/views/iugu/sessions/new.html.haml +9 -8
  23. data/app/views/iugu/settings/account.html.haml +31 -23
  24. data/app/views/iugu/settings/accounts.html.haml +5 -3
  25. data/app/views/iugu/settings/profile.html.haml +47 -44
  26. data/app/views/iugu/shared/_links.haml +14 -11
  27. data/app/views/layouts/settings.html.haml +1 -1
  28. data/config/initializers/devise.rb +0 -13
  29. data/config/locales/iugu.en.yml +6 -0
  30. data/config/locales/iugu.pt-BR.yml +6 -0
  31. data/config/routes.rb +9 -4
  32. data/db/migrate/20120725170859_add_api_token_to_account.rb +9 -0
  33. data/db/migrate/20120803172545_add_guest_to_users.rb +9 -0
  34. data/lib/iugusdk/controllers/helpers.rb +1 -1
  35. data/lib/iugusdk/engine.rb +1 -1
  36. data/lib/iugusdk/iugusdk_base_controller.rb +17 -0
  37. data/lib/iugusdk/version.rb +1 -1
  38. data/lib/iugusdk.rb +30 -5
  39. data/spec/controller_macros.rb +1 -1
  40. data/spec/controllers/account_controller_spec.rb +26 -45
  41. data/spec/controllers/account_domains_controller_spec.rb +87 -5
  42. data/spec/controllers/account_roles_controller_spec.rb +0 -14
  43. data/spec/controllers/invitations_controller_spec.rb +21 -1
  44. data/spec/controllers/registration_controller_spec.rb +15 -0
  45. data/spec/controllers/settings_controller_spec.rb +105 -0
  46. data/spec/dummy/db/schema.rb +3 -1
  47. data/spec/dummy/log/development.log +1579 -0
  48. data/spec/dummy/tmp/cache/assets/C91/3F0/sprockets%2Fcd844928d19e586b4146833b720e7d29 +0 -0
  49. data/spec/dummy/tmp/cache/assets/CAA/190/sprockets%2Fee7298fdc707d359368983e09687c627 +0 -0
  50. data/spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  51. data/spec/dummy/tmp/cache/assets/CE6/A00/sprockets%2F583256e44957e430e1eca9ba1739b6b6 +0 -0
  52. data/spec/dummy/tmp/cache/assets/CE7/4B0/sprockets%2Fd3774b9099289a36db44caec70813a19 +0 -0
  53. data/spec/dummy/tmp/cache/assets/CF1/A70/sprockets%2F368a631d9662bcc4891c91f739b7be37 +0 -0
  54. data/spec/dummy/tmp/cache/assets/CF6/A50/sprockets%2Ff434c1ed5d55916f790cf698832f76b1 +0 -0
  55. data/spec/dummy/tmp/cache/assets/CFB/F30/sprockets%2F84131db318a2faf415628c1075c32bdd +0 -0
  56. data/spec/dummy/tmp/cache/assets/D1A/F20/sprockets%2F102cc77ec78847746b1c164edcb9b639 +0 -0
  57. data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  58. data/spec/dummy/tmp/cache/assets/D3A/D70/sprockets%2Fa3bc2dd9e66062ea36222fc6154827ee +0 -0
  59. data/spec/dummy/tmp/cache/assets/D46/E20/sprockets%2F1de16fe0c12f9988664ed66a835a6ab0 +0 -0
  60. data/spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  61. data/spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  62. data/spec/dummy/tmp/cache/assets/D64/F60/sprockets%2F4755d7f5deef0f3212cb7ae30172a33e +0 -0
  63. data/spec/dummy/tmp/cache/assets/D69/850/sprockets%2F5c160a5a6d1068a17af57ab38affd379 +0 -0
  64. data/spec/dummy/tmp/cache/assets/D77/1A0/sprockets%2Ff3864fc006a0674b4c977ff5ca5c7d2e +0 -0
  65. data/spec/dummy/tmp/cache/assets/D77/920/sprockets%2Faf0e746c541e6cf4540db92c87da579c +0 -0
  66. data/spec/dummy/tmp/cache/assets/D7A/850/sprockets%2Fd1e5bf9f64829d062ed7314af28a4e7e +0 -0
  67. data/spec/dummy/tmp/cache/assets/D86/3F0/sprockets%2F8f648e11dfcec044b2997b98f619cfa6 +0 -0
  68. data/spec/dummy/tmp/cache/assets/DA5/130/sprockets%2F7d741fa9ebe86e96fb2bd116ca91234e +0 -0
  69. data/spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  70. data/spec/dummy/tmp/cache/assets/DF2/910/sprockets%2F02db4a9e6f91b47261fa5b0eece2ab8b +0 -0
  71. data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  72. data/spec/dummy/tmp/cache/assets/E25/5A0/sprockets%2F795f5759cf9bc7cde9f8acf8c0ca479f +0 -0
  73. data/spec/dummy/tmp/cache/assets/E35/0E0/sprockets%2F9f57eaeefd4c9d5efb41c9801e3f1c1a +0 -0
  74. data/spec/dummy/tmp/cache/sass/e5be18dde92936a4632e65289dad5788ed73dd60/settings.sassc +0 -0
  75. data/spec/dummy/tmp/cache/sass/e764476e9a85279ad82622591ce49983ed21c149/default.sassc +0 -0
  76. data/spec/fabricators/account_domain_fabricator.rb +5 -1
  77. data/spec/models/account_domain_spec.rb +49 -12
  78. data/spec/models/account_spec.rb +32 -4
  79. data/spec/models/user_invitation_spec.rb +23 -1
  80. data/spec/models/user_spec.rb +76 -0
  81. data/spec/requests/account_domain_spec.rb +71 -37
  82. data/spec/requests/account_roles_spec.rb +1 -0
  83. data/spec/requests/account_spec.rb +65 -3
  84. data/spec/requests/account_users_spec.rb +1 -0
  85. data/spec/requests/omniauth_spec.rb +34 -0
  86. data/spec/requests/settings_spec.rb +4 -4
  87. data/spec/requests/user_invitation_spec.rb +32 -1
  88. data/spec/requests/user_spec.rb +13 -0
  89. metadata +126 -70
  90. data/lib/iugusdk/locale_filter.rb +0 -12
@@ -102,3 +102,1582 @@ Connecting to database specified by database.yml
102
102
   (128.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
103
103
   (0.1ms) SELECT version FROM `schema_migrations`
104
104
   (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120719162426')
105
+ Connecting to database specified by database.yml
106
+ Connecting to database specified by database.yml
107
+
108
+
109
+ Started GET "/" for 127.0.0.1 at 2012-07-25 23:17:00 -0300
110
+ Processing by DashboardController#index as HTML
111
+ Rendered dashboard/splash.html.haml within layouts/application (2.6ms)
112
+ WARNING on line 74 of /Users/patricknegri/Desenvolvimento/iugusdk/spec/dummy/app/assets/stylesheets/default.sass:
113
+ This selector doesn't have any properties and will not be rendered.
114
+ Compiled default.css (102ms) (pid 1972)
115
+ Compiled application.css (160ms) (pid 1972)
116
+ Compiled jquery.js (1ms) (pid 1972)
117
+ Compiled jquery_ujs.js (0ms) (pid 1972)
118
+ Compiled application.js (98ms) (pid 1972)
119
+ Completed 200 OK in 486ms (Views: 468.1ms | ActiveRecord: 0.0ms)
120
+
121
+
122
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-07-25 23:17:01 -0300
123
+ Served asset /application.css - 200 OK (3ms)
124
+
125
+
126
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-25 23:17:01 -0300
127
+ Served asset /jquery_ujs.js - 200 OK (2ms)
128
+
129
+
130
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-07-25 23:17:01 -0300
131
+ Served asset /application.js - 200 OK (60ms)
132
+ Connecting to database specified by database.yml
133
+
134
+
135
+ Started GET "/assets/default.css?body=1" for 127.0.0.1 at 2012-07-25 23:17:14 -0300
136
+ Served asset /default.css - 200 OK (3ms)
137
+
138
+
139
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-25 23:17:14 -0300
140
+ Served asset /jquery.js - 200 OK (3ms)
141
+
142
+
143
+ Started GET "/login" for 127.0.0.1 at 2012-07-25 23:17:19 -0300
144
+ Processing by Iugu::SessionsController#new as HTML
145
+ Rendered /Users/patricknegri/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.1.2/app/views/devise/shared/_links.erb (2.3ms)
146
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/sessions/new.html.haml within layouts/application (6382.9ms)
147
+ Completed 200 OK in 6457ms (Views: 6391.6ms | ActiveRecord: 49.7ms)
148
+ Connecting to database specified by database.yml
149
+  (9.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
150
+ Migrating to CreateAccount (20120528164634)
151
+ Migrating to AddDeviseToUsers (20120529134109)
152
+ Migrating to AddBirthdateAndNameToUser (20120529162901)
153
+ Migrating to AddNameAndSubscriptionIdAndUserIdToAccount (20120529174755)
154
+ Migrating to CreateAccountUsers (20120529180814)
155
+ Migrating to RemoveUserIdFromAccounts (20120530114709)
156
+ Migrating to CreateAccountRoles (20120531171438)
157
+ Migrating to AddLocaleToUser (20120604131034)
158
+ Migrating to CreateSocialAccount (20120605142527)
159
+ Migrating to SetLocale (20120612141130)
160
+ Migrating to RemoveUniqueFromUserEmail (20120613173114)
161
+ Migrating to CreateDelayedJobs (20120615180728)
162
+ Migrating to CreateUserInvitations (20120629154429)
163
+ Migrating to AddTokenToUserInvitations (20120629195345)
164
+ Migrating to AddRolesToUserInvitations (20120705202827)
165
+ Migrating to CreateAccountDomain (20120716145846)
166
+ Migrating to AddSubdomainToAccount (20120719162426)
167
+ Migrating to AddApiTokenToAccount (20120725170859)
168
+  (180.8ms) ALTER TABLE `accounts` ADD `api_token` varchar(255)
169
+  (0.7ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120725170859')
170
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
171
+ Connecting to database specified by database.yml
172
+ Connecting to database specified by database.yml
173
+  (18.0ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
174
+ Migrating to CreateAccount (20120528164634)
175
+ Migrating to AddDeviseToUsers (20120529134109)
176
+ Migrating to AddBirthdateAndNameToUser (20120529162901)
177
+ Migrating to AddNameAndSubscriptionIdAndUserIdToAccount (20120529174755)
178
+ Migrating to CreateAccountUsers (20120529180814)
179
+ Migrating to RemoveUserIdFromAccounts (20120530114709)
180
+ Migrating to CreateAccountRoles (20120531171438)
181
+ Migrating to AddLocaleToUser (20120604131034)
182
+ Migrating to CreateSocialAccount (20120605142527)
183
+ Migrating to SetLocale (20120612141130)
184
+ Migrating to RemoveUniqueFromUserEmail (20120613173114)
185
+ Migrating to CreateDelayedJobs (20120615180728)
186
+ Migrating to CreateUserInvitations (20120629154429)
187
+ Migrating to AddTokenToUserInvitations (20120629195345)
188
+ Migrating to AddRolesToUserInvitations (20120705202827)
189
+ Migrating to CreateAccountDomain (20120716145846)
190
+ Migrating to AddSubdomainToAccount (20120719162426)
191
+ Migrating to AddApiTokenToAccount (20120725170859)
192
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
193
+ Connecting to database specified by database.yml
194
+
195
+
196
+ Started GET "/" for 127.0.0.1 at 2012-07-27 18:50:40 -0300
197
+ Processing by DashboardController#index as HTML
198
+ Rendered dashboard/splash.html.haml within layouts/application (2.8ms)
199
+ Completed 200 OK in 212ms (Views: 203.3ms | ActiveRecord: 0.0ms)
200
+
201
+
202
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-07-27 18:50:41 -0300
203
+ Served asset /application.js - 200 OK (3ms)
204
+
205
+
206
+ Started GET "/assets/default.css?body=1" for 127.0.0.1 at 2012-07-27 18:50:41 -0300
207
+ Served asset /default.css - 200 OK (2ms)
208
+
209
+
210
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:50:41 -0300
211
+ Served asset /jquery_ujs.js - 200 OK (1ms)
212
+ Connecting to database specified by database.yml
213
+
214
+
215
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:50:52 -0300
216
+ Served asset /jquery.js - 200 OK (3ms)
217
+
218
+
219
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-07-27 18:50:52 -0300
220
+ Served asset /application.css - 200 OK (48ms)
221
+
222
+
223
+ Started GET "/login" for 127.0.0.1 at 2012-07-27 18:50:58 -0300
224
+ Processing by Iugu::SessionsController#new as HTML
225
+ Rendered /Users/patricknegri/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.1.2/app/views/devise/shared/_links.erb (2.3ms)
226
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/sessions/new.html.haml within layouts/application (6713.5ms)
227
+ Completed 200 OK in 6756ms (Views: 6735.8ms | ActiveRecord: 3.5ms)
228
+
229
+
230
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:05 -0300
231
+
232
+
233
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:05 -0300
234
+ Served asset /jquery_ujs.js - 304 Not Modified (2ms)
235
+ Served asset /application.css - 304 Not Modified (5ms)
236
+
237
+
238
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:05 -0300
239
+
240
+
241
+ Started GET "/assets/default.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:05 -0300
242
+ Served asset /jquery.js - 304 Not Modified (0ms)
243
+ Served asset /default.css - 304 Not Modified (0ms)
244
+
245
+
246
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:05 -0300
247
+ Served asset /application.js - 304 Not Modified (3ms)
248
+
249
+
250
+ Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-07-27 18:51:09 -0300
251
+
252
+
253
+ Started GET "/account/auth/facebook/callback?state=cb0c5938ab40d05b7bac355aae7308e5dee5256edc5b25f8&code=AQBiu8hdi6FRI2VJOqVKZ-oSAmt7E4M1afbjHIo8HvUWcJlNKXkR2wfmT65vuwSkcdVrP8v8yWo5m5WFpG5oSGcI-FK630yhH0VQ7BQHCyFl1RdtNKCF_jMeO0bfvcwrzAgRdq6v7pSSzTTMC-SPk0ma8HjeuBsWEKEn93HQIP3A15uiA7GByiBSyicT5w1ZiNE" for 127.0.0.1 at 2012-07-27 18:51:10 -0300
254
+ Processing by Iugu::OmniauthCallbacksController#facebook as HTML
255
+ Parameters: {"state"=>"cb0c5938ab40d05b7bac355aae7308e5dee5256edc5b25f8", "code"=>"AQBiu8hdi6FRI2VJOqVKZ-oSAmt7E4M1afbjHIo8HvUWcJlNKXkR2wfmT65vuwSkcdVrP8v8yWo5m5WFpG5oSGcI-FK630yhH0VQ7BQHCyFl1RdtNKCF_jMeO0bfvcwrzAgRdq6v7pSSzTTMC-SPk0ma8HjeuBsWEKEn93HQIP3A15uiA7GByiBSyicT5w1ZiNE"}
256
+ DEPRECATION WARNING: Using `method_missing` to handle non existing actions is deprecated and will be removed in Rails 4.0, please use `action_missing` instead. (called from handle at /Users/patricknegri/Library/Application Support/Pow/Versions/0.4.0/node_modules/nack/lib/nack/server.rb:147)
257
+ SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1139530567') LIMIT 1
258
+  (0.5ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'patrick@iugu.com.br'
259
+  (0.1ms) BEGIN
260
+ SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-07-27 21:51:14', '2012-07-27 21:51:14', 'patrick@iugu.com.br', '', NULL, NULL, NULL, NULL, NULL, NULL, '2012-07-27 21:51:14')
261
+ SQL (0.5ms) INSERT INTO `accounts` (`api_token`, `created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('dc703a38dd769da0f98a9ffb7cc72f93', '2012-07-27 21:51:14', NULL, NULL, NULL, '2012-07-27 21:51:14')
262
+ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
263
+ SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1)
264
+ AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1
265
+ AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1
266
+ SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner')
267
+ AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1
268
+ AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1
269
+ SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')
270
+  (0.8ms) COMMIT
271
+  (0.1ms) BEGIN
272
+ SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1139530567, 'AAACfei317GUBAAZAsZA3lu1s1ZBmy8q8jijCEN2RP3PFGDFZAC0En0xwZCQ4O0S9cLXg9G2b4hYJZCsaOoRaVFjd1zZAR4l58c36qm46ZA6xfAZDZD', 1)
273
+  (0.6ms) COMMIT
274
+  (0.1ms) BEGIN
275
+  (0.0ms) COMMIT
276
+ SELECT ACCOUNT
277
+ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = '9') LIMIT 1
278
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1
279
+ Redirected to http://iugusdk.dev/
280
+ Completed 302 Found in 634ms (ActiveRecord: 17.9ms)
281
+
282
+
283
+ Started GET "/" for 127.0.0.1 at 2012-07-27 18:51:14 -0300
284
+ Processing by DashboardController#index as HTML
285
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
286
+ Rendered dashboard/index.html.haml within layouts/application (1.1ms)
287
+ Completed 200 OK in 45ms (Views: 41.8ms | ActiveRecord: 0.4ms)
288
+
289
+
290
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:14 -0300
291
+
292
+
293
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:14 -0300
294
+ Served asset /application.css - 304 Not Modified (0ms)
295
+
296
+
297
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:14 -0300
298
+ Served asset /jquery.js - 304 Not Modified (3ms)
299
+
300
+
301
+ Started GET "/assets/default.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:14 -0300
302
+ Served asset /application.js - 304 Not Modified (0ms)
303
+ Served asset /default.css - 304 Not Modified (0ms)
304
+
305
+
306
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:14 -0300
307
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
308
+
309
+
310
+ Started GET "/settings" for 127.0.0.1 at 2012-07-27 18:51:21 -0300
311
+ Processing by Iugu::SettingsController#index as HTML
312
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
313
+ Redirected to http://iugusdk.dev/settings/profile
314
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
315
+
316
+
317
+ Started GET "/settings/profile" for 127.0.0.1 at 2012-07-27 18:51:21 -0300
318
+ Processing by Iugu::ProfileController#index as HTML
319
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
320
+ Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1
321
+ DEPRECATION WARNING: :confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm => 'Text' }' instead. (called from block in ___sers_patricknegri__esenvolvimento_iugusdk_app_views_iugu_settings_profile_html_haml__3975791667755215596_2168157460 at /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml:63)
322
+ SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1
323
+ SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1
324
+ SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1
325
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (33.6ms)
326
+ Compiled settings.css (205ms) (pid 1481)
327
+ Compiled jquery-ui.js (2ms) (pid 1481)
328
+ Compiled settings_code.js (71ms) (pid 1481)
329
+ Compiled settings.js (166ms) (pid 1481)
330
+ Completed 200 OK in 610ms (Views: 602.9ms | ActiveRecord: 5.0ms)
331
+
332
+
333
+ Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:22 -0300
334
+
335
+
336
+ Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:22 -0300
337
+ Served asset /settings_code.js - 200 OK (2ms)
338
+
339
+
340
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:22 -0300
341
+ Served asset /settings.js - 200 OK (10ms)
342
+
343
+
344
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:22 -0300
345
+ Served asset /jquery-ui.js - 200 OK (3ms)
346
+ Served asset /jquery.js - 304 Not Modified (0ms)
347
+
348
+
349
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:22 -0300
350
+
351
+
352
+ Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:22 -0300
353
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
354
+ Served asset /settings.css - 200 OK (2ms)
355
+
356
+
357
+ Started GET "/assets/application_logo.png" for 127.0.0.1 at 2012-07-27 18:51:22 -0300
358
+ Served asset /application_logo.png - 200 OK (24ms)
359
+
360
+
361
+ Started GET "/settings/accounts" for 127.0.0.1 at 2012-07-27 18:51:24 -0300
362
+ Processing by Iugu::AccountController#index as HTML
363
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
364
+  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1
365
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1
366
+ AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1
367
+ AccountRole Load (0.5ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
368
+ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
369
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (145.5ms)
370
+ Completed 200 OK in 165ms (Views: 160.6ms | ActiveRecord: 2.6ms)
371
+
372
+
373
+ Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:25 -0300
374
+
375
+
376
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:25 -0300
377
+ Served asset /jquery-ui.js - 304 Not Modified (0ms)
378
+
379
+
380
+ Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:25 -0300
381
+ Served asset /settings.css - 304 Not Modified (3ms)
382
+ Served asset /settings.js - 304 Not Modified (7ms)
383
+
384
+
385
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:25 -0300
386
+
387
+
388
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:25 -0300
389
+ Served asset /jquery.js - 304 Not Modified (0ms)
390
+
391
+
392
+ Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:25 -0300
393
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
394
+ Served asset /settings_code.js - 304 Not Modified (3ms)
395
+
396
+
397
+ Started GET "/settings/account/1" for 127.0.0.1 at 2012-07-27 18:51:26 -0300
398
+ Processing by Iugu::AccountController#view as HTML
399
+ Parameters: {"id"=>"1"}
400
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
401
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1
402
+ AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`primary` = 1 LIMIT 1
403
+ AccountUser Load (0.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
404
+ AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
405
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
406
+ AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
407
+ CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
408
+ CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
409
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
410
+ CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
411
+ CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
412
+ CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
413
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
414
+ CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
415
+ Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1
416
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/account.html.haml within layouts/settings (75.6ms)
417
+ Completed 200 OK in 157ms (Views: 82.5ms | ActiveRecord: 5.9ms)
418
+
419
+
420
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:27 -0300
421
+
422
+
423
+ Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:27 -0300
424
+ Served asset /settings.css - 304 Not Modified (0ms)
425
+
426
+
427
+ Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:27 -0300
428
+ Served asset /jquery-ui.js - 304 Not Modified (3ms)
429
+
430
+
431
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:27 -0300
432
+ Served asset /settings_code.js - 304 Not Modified (0ms)
433
+
434
+
435
+ Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:27 -0300
436
+ Served asset /jquery.js - 304 Not Modified (0ms)
437
+
438
+
439
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:27 -0300
440
+ Served asset /settings.js - 304 Not Modified (0ms)
441
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
442
+
443
+
444
+ Started GET "/settings/account/1/domains" for 127.0.0.1 at 2012-07-27 18:51:32 -0300
445
+ Processing by Iugu::AccountDomainsController#index as HTML
446
+ Parameters: {"account_id"=>"1"}
447
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
448
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
449
+ Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1
450
+ AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1
451
+ AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
452
+ AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'admin' LIMIT 1
453
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1
454
+ AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`account_id` = 1
455
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/account_domains/index.html.haml within layouts/settings (10.6ms)
456
+ Completed 200 OK in 41ms (Views: 25.5ms | ActiveRecord: 2.6ms)
457
+
458
+
459
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:32 -0300
460
+
461
+
462
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:32 -0300
463
+ Served asset /jquery-ui.js - 304 Not Modified (0ms)
464
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
465
+
466
+
467
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:32 -0300
468
+
469
+
470
+ Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:32 -0300
471
+ Served asset /jquery.js - 304 Not Modified (0ms)
472
+ Served asset /settings.css - 304 Not Modified (0ms)
473
+
474
+
475
+ Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:32 -0300
476
+
477
+
478
+ Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:32 -0300
479
+ Served asset /settings_code.js - 304 Not Modified (0ms)
480
+ Served asset /settings.js - 304 Not Modified (0ms)
481
+
482
+
483
+ Started PUT "/settings/account/1/subdomain?id=1" for 127.0.0.1 at 2012-07-27 18:51:34 -0300
484
+ Processing by Iugu::AccountDomainsController#update_subdomain as HTML
485
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"bpsPTOi9t9F9+SZQRfRKCJTe+msoeOF+GzxwcBkQ5Bc=", "account"=>{"subdomain"=>""}, "commit"=>"Save", "id"=>"1", "account_id"=>"1"}
486
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
487
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
488
+ Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1
489
+ AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1
490
+ AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
491
+ AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'admin' LIMIT 1
492
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1
493
+  (0.2ms) BEGIN
494
+ Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`api_token` = BINARY 'dc703a38dd769da0f98a9ffb7cc72f93' AND `accounts`.`id` != 1) LIMIT 1
495
+  (0.4ms) UPDATE `accounts` SET `subdomain` = '', `updated_at` = '2012-07-27 21:51:34' WHERE `accounts`.`id` = 1
496
+  (0.5ms) COMMIT
497
+ Redirected to http://iugusdk.dev/settings/account/1/domains
498
+ Completed 302 Found in 15ms (ActiveRecord: 4.0ms)
499
+
500
+
501
+ Started GET "/settings/account/1/domains" for 127.0.0.1 at 2012-07-27 18:51:34 -0300
502
+ Processing by Iugu::AccountDomainsController#index as HTML
503
+ Parameters: {"account_id"=>"1"}
504
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
505
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
506
+ Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1
507
+ AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1
508
+ AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
509
+ AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'admin' LIMIT 1
510
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1
511
+ AccountDomain Load (0.6ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`account_id` = 1
512
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/account_domains/index.html.haml within layouts/settings (62.9ms)
513
+ Completed 200 OK in 81ms (Views: 71.2ms | ActiveRecord: 2.5ms)
514
+
515
+
516
+ Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:34 -0300
517
+
518
+
519
+ Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:34 -0300
520
+ Served asset /settings.css - 304 Not Modified (0ms)
521
+ Served asset /settings_code.js - 304 Not Modified (0ms)
522
+
523
+
524
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:34 -0300
525
+
526
+
527
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:34 -0300
528
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
529
+
530
+
531
+ Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:34 -0300
532
+ Served asset /jquery-ui.js - 304 Not Modified (0ms)
533
+
534
+
535
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:34 -0300
536
+ Served asset /settings.js - 304 Not Modified (0ms)
537
+ Served asset /jquery.js - 304 Not Modified (0ms)
538
+
539
+
540
+ Started POST "/settings/account/1/domain" for 127.0.0.1 at 2012-07-27 18:51:35 -0300
541
+ Processing by Iugu::AccountDomainsController#create as HTML
542
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"bpsPTOi9t9F9+SZQRfRKCJTe+msoeOF+GzxwcBkQ5Bc=", "account_domain"=>{"url"=>""}, "commit"=>"Add", "account_id"=>"1"}
543
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
544
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
545
+ Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1
546
+ AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1
547
+ AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
548
+ AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'admin' LIMIT 1
549
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1
550
+  (0.1ms) BEGIN
551
+  (0.2ms) ROLLBACK
552
+  (0.1ms) BEGIN
553
+  (0.1ms) COMMIT
554
+ AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`account_id` = 1
555
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/account_domains/index.html.haml within layouts/settings (5.8ms)
556
+ Completed 200 OK in 30ms (Views: 14.6ms | ActiveRecord: 3.3ms)
557
+
558
+
559
+ Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:35 -0300
560
+
561
+
562
+ Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:35 -0300
563
+ Served asset /settings.css - 304 Not Modified (0ms)
564
+ Served asset /settings.js - 304 Not Modified (0ms)
565
+
566
+
567
+ Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:35 -0300
568
+
569
+
570
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:35 -0300
571
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
572
+ Served asset /settings_code.js - 304 Not Modified (0ms)
573
+
574
+
575
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:35 -0300
576
+
577
+
578
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:35 -0300
579
+ Served asset /jquery.js - 304 Not Modified (0ms)
580
+ Served asset /jquery-ui.js - 304 Not Modified (0ms)
581
+
582
+
583
+ Started GET "/settings/accounts" for 127.0.0.1 at 2012-07-27 18:51:37 -0300
584
+ Processing by Iugu::AccountController#index as HTML
585
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
586
+  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1
587
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1
588
+ AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1
589
+ AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
590
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
591
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (8.9ms)
592
+ Completed 200 OK in 20ms (Views: 16.4ms | ActiveRecord: 2.0ms)
593
+
594
+
595
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:37 -0300
596
+
597
+
598
+ Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:37 -0300
599
+ Served asset /settings.css - 304 Not Modified (0ms)
600
+ Served asset /jquery.js - 304 Not Modified (0ms)
601
+
602
+
603
+ Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:37 -0300
604
+
605
+
606
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:37 -0300
607
+ Served asset /settings.js - 304 Not Modified (0ms)
608
+
609
+
610
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:37 -0300
611
+ Served asset /jquery-ui.js - 304 Not Modified (0ms)
612
+
613
+
614
+ Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:37 -0300
615
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
616
+ Served asset /settings_code.js - 304 Not Modified (0ms)
617
+
618
+
619
+ Started POST "/settings/account" for 127.0.0.1 at 2012-07-27 18:51:39 -0300
620
+ Processing by Iugu::AccountController#create as HTML
621
+ Parameters: {"authenticity_token"=>"bpsPTOi9t9F9+SZQRfRKCJTe+msoeOF+GzxwcBkQ5Bc="}
622
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
623
+  (0.1ms) BEGIN
624
+ SQL (0.3ms) INSERT INTO `accounts` (`api_token`, `created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('5409bab1a7e6824501eed7f17b741343', '2012-07-27 21:51:39', NULL, NULL, NULL, '2012-07-27 21:51:39')
625
+  (0.6ms) COMMIT
626
+  (0.1ms) BEGIN
627
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
628
+ SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 1)
629
+ AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1
630
+ AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1
631
+ SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner')
632
+ AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1
633
+ AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1
634
+ SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')
635
+  (0.5ms) COMMIT
636
+ Redirected to http://iugusdk.dev/settings/accounts
637
+ Completed 302 Found in 18ms (ActiveRecord: 4.2ms)
638
+
639
+
640
+ Started GET "/settings/accounts" for 127.0.0.1 at 2012-07-27 18:51:39 -0300
641
+ Processing by Iugu::AccountController#index as HTML
642
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
643
+  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1
644
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1
645
+ AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1
646
+ AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
647
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
648
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (7.7ms)
649
+ Completed 200 OK in 18ms (Views: 14.5ms | ActiveRecord: 2.1ms)
650
+
651
+
652
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:39 -0300
653
+
654
+
655
+ Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:39 -0300
656
+ Served asset /settings.css - 304 Not Modified (0ms)
657
+ Served asset /jquery.js - 304 Not Modified (0ms)
658
+
659
+
660
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:39 -0300
661
+
662
+
663
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:39 -0300
664
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
665
+ Served asset /jquery-ui.js - 304 Not Modified (0ms)
666
+
667
+
668
+ Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:39 -0300
669
+
670
+
671
+ Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:39 -0300
672
+ Served asset /settings.js - 304 Not Modified (0ms)
673
+ Served asset /settings_code.js - 304 Not Modified (0ms)
674
+
675
+
676
+ Started GET "/select_account/2" for 127.0.0.1 at 2012-07-27 18:51:40 -0300
677
+ Processing by Iugu::AccountController#select as HTML
678
+ Parameters: {"id"=>"2"}
679
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
680
+ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = '2') LIMIT 1
681
+ Redirected to http://iugusdk.dev/settings/accounts
682
+ Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
683
+
684
+
685
+ Started GET "/settings/accounts" for 127.0.0.1 at 2012-07-27 18:51:40 -0300
686
+ Processing by Iugu::AccountController#index as HTML
687
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
688
+  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1
689
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1
690
+ AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 2 LIMIT 1
691
+ AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (2)
692
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (2)
693
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (9.0ms)
694
+ Completed 200 OK in 20ms (Views: 16.4ms | ActiveRecord: 1.9ms)
695
+
696
+
697
+ Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:40 -0300
698
+
699
+
700
+ Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:40 -0300
701
+ Served asset /settings.css - 304 Not Modified (0ms)
702
+ Served asset /settings_code.js - 304 Not Modified (0ms)
703
+
704
+
705
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:40 -0300
706
+
707
+
708
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:40 -0300
709
+ Served asset /jquery-ui.js - 304 Not Modified (0ms)
710
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
711
+
712
+
713
+ Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:40 -0300
714
+
715
+
716
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:40 -0300
717
+ Served asset /jquery.js - 304 Not Modified (0ms)
718
+ Served asset /settings.js - 304 Not Modified (0ms)
719
+
720
+
721
+ Started GET "/select_account/1" for 127.0.0.1 at 2012-07-27 18:51:41 -0300
722
+ Processing by Iugu::AccountController#select as HTML
723
+ Parameters: {"id"=>"1"}
724
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
725
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = '1') LIMIT 1
726
+ Redirected to http://iugusdk.dev/settings/accounts
727
+ Completed 302 Found in 67ms (ActiveRecord: 0.9ms)
728
+
729
+
730
+ Started GET "/settings/accounts" for 127.0.0.1 at 2012-07-27 18:51:41 -0300
731
+ Processing by Iugu::AccountController#index as HTML
732
+ User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
733
+  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1
734
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1
735
+ AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1
736
+ AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
737
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
738
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (8.4ms)
739
+ Completed 200 OK in 19ms (Views: 15.3ms | ActiveRecord: 2.1ms)
740
+
741
+
742
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:41 -0300
743
+
744
+
745
+ Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:41 -0300
746
+ Served asset /settings.css - 304 Not Modified (0ms)
747
+ Served asset /jquery.js - 304 Not Modified (0ms)
748
+
749
+
750
+ Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:41 -0300
751
+
752
+
753
+ Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:41 -0300
754
+ Served asset /settings_code.js - 304 Not Modified (0ms)
755
+ Served asset /settings.js - 304 Not Modified (0ms)
756
+
757
+
758
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:41 -0300
759
+
760
+
761
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:41 -0300
762
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
763
+ Served asset /jquery-ui.js - 304 Not Modified (0ms)
764
+
765
+
766
+ Started GET "/select_account/2" for 127.0.0.1 at 2012-07-27 18:51:42 -0300
767
+ Processing by Iugu::AccountController#select as HTML
768
+ Parameters: {"id"=>"2"}
769
+ User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
770
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = '2') LIMIT 1
771
+ Redirected to http://iugusdk.dev/settings/accounts
772
+ Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
773
+
774
+
775
+ Started GET "/settings/accounts" for 127.0.0.1 at 2012-07-27 18:51:42 -0300
776
+ Processing by Iugu::AccountController#index as HTML
777
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
778
+  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1
779
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1
780
+ AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 2 LIMIT 1
781
+ AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (2)
782
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (2)
783
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (8.0ms)
784
+ Completed 200 OK in 19ms (Views: 15.1ms | ActiveRecord: 2.2ms)
785
+
786
+
787
+ Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:42 -0300
788
+
789
+
790
+ Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:42 -0300
791
+ Served asset /settings.css - 304 Not Modified (0ms)
792
+ Served asset /settings.js - 304 Not Modified (0ms)
793
+
794
+
795
+ Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:42 -0300
796
+
797
+
798
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:42 -0300
799
+ Served asset /settings_code.js - 304 Not Modified (0ms)
800
+
801
+
802
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:42 -0300
803
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
804
+
805
+
806
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:42 -0300
807
+ Served asset /jquery-ui.js - 304 Not Modified (0ms)
808
+ Served asset /jquery.js - 304 Not Modified (0ms)
809
+
810
+
811
+ Started GET "/select_account/1" for 127.0.0.1 at 2012-07-27 18:51:43 -0300
812
+ Processing by Iugu::AccountController#select as HTML
813
+ Parameters: {"id"=>"1"}
814
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
815
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = '1') LIMIT 1
816
+ Redirected to http://iugusdk.dev/settings/accounts
817
+ Completed 302 Found in 5ms (ActiveRecord: 0.9ms)
818
+
819
+
820
+ Started GET "/settings/accounts" for 127.0.0.1 at 2012-07-27 18:51:43 -0300
821
+ Processing by Iugu::AccountController#index as HTML
822
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
823
+  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1
824
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1
825
+ AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1
826
+ AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
827
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
828
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (8.0ms)
829
+ Completed 200 OK in 19ms (Views: 15.0ms | ActiveRecord: 2.1ms)
830
+
831
+
832
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:43 -0300
833
+
834
+
835
+ Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:43 -0300
836
+ Served asset /jquery.js - 304 Not Modified (0ms)
837
+
838
+
839
+ Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:43 -0300
840
+ Served asset /settings.js - 304 Not Modified (0ms)
841
+
842
+
843
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:43 -0300
844
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
845
+ Served asset /settings.css - 304 Not Modified (0ms)
846
+
847
+
848
+ Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:43 -0300
849
+ Served asset /settings_code.js - 304 Not Modified (0ms)
850
+
851
+
852
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:43 -0300
853
+ Served asset /jquery-ui.js - 304 Not Modified (0ms)
854
+
855
+
856
+ Started GET "/settings/account/1" for 127.0.0.1 at 2012-07-27 18:51:44 -0300
857
+ Processing by Iugu::AccountController#view as HTML
858
+ Parameters: {"id"=>"1"}
859
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
860
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1
861
+ AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`primary` = 1 LIMIT 1
862
+ AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
863
+ AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
864
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
865
+ AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
866
+ CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
867
+ CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
868
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
869
+ CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
870
+ CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
871
+ CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
872
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
873
+ CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
874
+ Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1
875
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/account.html.haml within layouts/settings (20.6ms)
876
+ Completed 200 OK in 36ms (Views: 29.3ms | ActiveRecord: 2.9ms)
877
+
878
+
879
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:44 -0300
880
+
881
+
882
+ Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:44 -0300
883
+ Served asset /settings.css - 304 Not Modified (0ms)
884
+ Served asset /jquery.js - 304 Not Modified (0ms)
885
+
886
+
887
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:44 -0300
888
+
889
+
890
+ Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:44 -0300
891
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
892
+ Served asset /settings_code.js - 304 Not Modified (0ms)
893
+
894
+
895
+ Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:44 -0300
896
+
897
+
898
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:44 -0300
899
+ Served asset /jquery-ui.js - 304 Not Modified (0ms)
900
+ Served asset /settings.js - 304 Not Modified (0ms)
901
+
902
+
903
+ Started GET "/settings/account/1" for 127.0.0.1 at 2012-07-27 18:51:47 -0300
904
+ Processing by Iugu::AccountController#view as HTML
905
+ Parameters: {"id"=>"1"}
906
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
907
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1
908
+ AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`primary` = 1 LIMIT 1
909
+ AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
910
+ AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
911
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
912
+ AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
913
+ CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
914
+ CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
915
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
916
+ CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
917
+ CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
918
+ CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
919
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
920
+ CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
921
+ Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1
922
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/account.html.haml within layouts/settings (18.2ms)
923
+ Completed 200 OK in 32ms (Views: 25.1ms | ActiveRecord: 2.9ms)
924
+
925
+
926
+ Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:47 -0300
927
+
928
+
929
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:47 -0300
930
+ Served asset /jquery.js - 304 Not Modified (0ms)
931
+ Served asset /settings.css - 304 Not Modified (0ms)
932
+
933
+
934
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:47 -0300
935
+
936
+
937
+ Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:47 -0300
938
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
939
+
940
+
941
+ Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:47 -0300
942
+ Served asset /settings_code.js - 304 Not Modified (0ms)
943
+
944
+
945
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:47 -0300
946
+ Served asset /settings.js - 304 Not Modified (0ms)
947
+ Served asset /jquery-ui.js - 304 Not Modified (0ms)
948
+
949
+
950
+ Started POST "/settings/account/1/generate_new_token" for 127.0.0.1 at 2012-07-27 18:51:50 -0300
951
+ Processing by Iugu::AccountController#generate_new_token as HTML
952
+ Parameters: {"authenticity_token"=>"bpsPTOi9t9F9+SZQRfRKCJTe+msoeOF+GzxwcBkQ5Bc=", "account_id"=>"1"}
953
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
954
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
955
+ Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1
956
+ AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1
957
+ AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
958
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1
959
+  (0.2ms) BEGIN
960
+  (0.4ms) UPDATE `accounts` SET `api_token` = '95a08be4b003cd259c4dd21a49aad384', `updated_at` = '2012-07-27 21:51:50' WHERE `accounts`.`id` = 1
961
+  (0.9ms) COMMIT
962
+ Redirected to http://iugusdk.dev/settings/account/1
963
+ Completed 302 Found in 74ms (ActiveRecord: 3.5ms)
964
+
965
+
966
+ Started GET "/settings/account/1" for 127.0.0.1 at 2012-07-27 18:51:50 -0300
967
+ Processing by Iugu::AccountController#view as HTML
968
+ Parameters: {"id"=>"1"}
969
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
970
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1
971
+ AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`primary` = 1 LIMIT 1
972
+ AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
973
+ AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
974
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
975
+ AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
976
+ CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
977
+ CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
978
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
979
+ CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
980
+ CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
981
+ CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
982
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
983
+ CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
984
+ Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1
985
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/account.html.haml within layouts/settings (20.2ms)
986
+ Completed 200 OK in 34ms (Views: 27.2ms | ActiveRecord: 2.8ms)
987
+
988
+
989
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:50 -0300
990
+
991
+
992
+ Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:50 -0300
993
+ Served asset /jquery.js - 304 Not Modified (0ms)
994
+ Served asset /settings.css - 304 Not Modified (0ms)
995
+
996
+
997
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:50 -0300
998
+
999
+
1000
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:50 -0300
1001
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
1002
+ Served asset /jquery-ui.js - 304 Not Modified (0ms)
1003
+
1004
+
1005
+ Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:50 -0300
1006
+
1007
+
1008
+ Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:50 -0300
1009
+ Served asset /settings.js - 304 Not Modified (0ms)
1010
+ Served asset /settings_code.js - 304 Not Modified (0ms)
1011
+
1012
+
1013
+ Started GET "/settings/profile" for 127.0.0.1 at 2012-07-27 18:51:51 -0300
1014
+ Processing by Iugu::ProfileController#index as HTML
1015
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1016
+ Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1
1017
+ DEPRECATION WARNING: :confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm => 'Text' }' instead. (called from block in ___sers_patricknegri__esenvolvimento_iugusdk_app_views_iugu_settings_profile_html_haml__3975791667755215596_2168157460 at /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml:63)
1018
+ SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1
1019
+ SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1
1020
+ SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1
1021
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (29.1ms)
1022
+ Completed 200 OK in 45ms (Views: 40.3ms | ActiveRecord: 2.1ms)
1023
+
1024
+
1025
+ Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:51 -0300
1026
+
1027
+
1028
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:51 -0300
1029
+ Served asset /jquery.js - 304 Not Modified (0ms)
1030
+ Served asset /settings.css - 304 Not Modified (0ms)
1031
+
1032
+
1033
+ Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:51 -0300
1034
+
1035
+
1036
+ Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:51 -0300
1037
+ Served asset /settings_code.js - 304 Not Modified (0ms)
1038
+
1039
+
1040
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:51 -0300
1041
+ Served asset /settings.js - 304 Not Modified (0ms)
1042
+
1043
+
1044
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:51 -0300
1045
+ Served asset /jquery-ui.js - 304 Not Modified (0ms)
1046
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
1047
+
1048
+
1049
+ Started GET "/settings/profile" for 127.0.0.1 at 2012-07-27 18:51:53 -0300
1050
+ Processing by Iugu::ProfileController#index as HTML
1051
+ User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1052
+ Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1
1053
+ DEPRECATION WARNING: :confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm => 'Text' }' instead. (called from block in ___sers_patricknegri__esenvolvimento_iugusdk_app_views_iugu_settings_profile_html_haml__3975791667755215596_2168157460 at /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml:63)
1054
+ SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1
1055
+ SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1
1056
+ SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1
1057
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (80.5ms)
1058
+ Completed 200 OK in 91ms (Views: 87.4ms | ActiveRecord: 1.9ms)
1059
+
1060
+
1061
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:53 -0300
1062
+
1063
+
1064
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:53 -0300
1065
+ Served asset /jquery-ui.js - 304 Not Modified (0ms)
1066
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
1067
+
1068
+
1069
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:53 -0300
1070
+
1071
+
1072
+ Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:53 -0300
1073
+ Served asset /jquery.js - 304 Not Modified (0ms)
1074
+ Served asset /settings.css - 304 Not Modified (0ms)
1075
+
1076
+
1077
+ Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:53 -0300
1078
+
1079
+
1080
+ Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:53 -0300
1081
+ Served asset /settings_code.js - 304 Not Modified (0ms)
1082
+ Served asset /settings.js - 304 Not Modified (0ms)
1083
+
1084
+
1085
+ Started GET "/settings/accounts" for 127.0.0.1 at 2012-07-27 18:51:54 -0300
1086
+ Processing by Iugu::AccountController#index as HTML
1087
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1088
+  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1
1089
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1
1090
+ AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1
1091
+ AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
1092
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
1093
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (8.7ms)
1094
+ Completed 200 OK in 21ms (Views: 17.2ms | ActiveRecord: 2.0ms)
1095
+
1096
+
1097
+ Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:54 -0300
1098
+
1099
+
1100
+ Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:54 -0300
1101
+ Served asset /settings.css - 304 Not Modified (0ms)
1102
+ Served asset /settings.js - 304 Not Modified (0ms)
1103
+
1104
+
1105
+ Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:54 -0300
1106
+
1107
+
1108
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:54 -0300
1109
+ Served asset /settings_code.js - 304 Not Modified (0ms)
1110
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
1111
+
1112
+
1113
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:54 -0300
1114
+
1115
+
1116
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:54 -0300
1117
+ Served asset /jquery-ui.js - 304 Not Modified (0ms)
1118
+ Served asset /jquery.js - 304 Not Modified (0ms)
1119
+
1120
+
1121
+ Started GET "/settings/profile" for 127.0.0.1 at 2012-07-27 18:51:54 -0300
1122
+ Processing by Iugu::ProfileController#index as HTML
1123
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1124
+ Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1
1125
+ DEPRECATION WARNING: :confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm => 'Text' }' instead. (called from block in ___sers_patricknegri__esenvolvimento_iugusdk_app_views_iugu_settings_profile_html_haml__3975791667755215596_2168157460 at /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml:63)
1126
+ SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1
1127
+ SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1
1128
+ SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1
1129
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (75.9ms)
1130
+ Completed 200 OK in 87ms (Views: 83.4ms | ActiveRecord: 1.9ms)
1131
+
1132
+
1133
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:55 -0300
1134
+
1135
+
1136
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:55 -0300
1137
+ Served asset /jquery-ui.js - 304 Not Modified (0ms)
1138
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
1139
+
1140
+
1141
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:55 -0300
1142
+
1143
+
1144
+ Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:55 -0300
1145
+ Served asset /jquery.js - 304 Not Modified (0ms)
1146
+ Served asset /settings.css - 304 Not Modified (0ms)
1147
+
1148
+
1149
+ Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:55 -0300
1150
+
1151
+
1152
+ Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:55 -0300
1153
+ Served asset /settings.js - 304 Not Modified (0ms)
1154
+ Served asset /settings_code.js - 304 Not Modified (0ms)
1155
+
1156
+
1157
+ Started GET "/" for 127.0.0.1 at 2012-07-27 18:51:55 -0300
1158
+ Processing by DashboardController#index as HTML
1159
+ User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1160
+ Rendered dashboard/index.html.haml within layouts/application (0.1ms)
1161
+ Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.3ms)
1162
+
1163
+
1164
+ Started GET "/assets/default.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:55 -0300
1165
+
1166
+
1167
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:55 -0300
1168
+ Served asset /application.css - 304 Not Modified (0ms)
1169
+ Served asset /default.css - 304 Not Modified (0ms)
1170
+
1171
+
1172
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:55 -0300
1173
+
1174
+
1175
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:55 -0300
1176
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
1177
+ Served asset /jquery.js - 304 Not Modified (0ms)
1178
+
1179
+
1180
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:55 -0300
1181
+ Served asset /application.js - 304 Not Modified (0ms)
1182
+
1183
+
1184
+ Started DELETE "/logout" for 127.0.0.1 at 2012-07-27 18:51:56 -0300
1185
+ Processing by Iugu::SessionsController#destroy as HTML
1186
+ Parameters: {"authenticity_token"=>"bpsPTOi9t9F9+SZQRfRKCJTe+msoeOF+GzxwcBkQ5Bc="}
1187
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1188
+  (0.3ms) BEGIN
1189
+  (0.1ms) COMMIT
1190
+ Redirected to http://iugusdk.dev/
1191
+ Completed 302 Found in 26ms (ActiveRecord: 0.8ms)
1192
+
1193
+
1194
+ Started GET "/" for 127.0.0.1 at 2012-07-27 18:51:56 -0300
1195
+ Processing by DashboardController#index as HTML
1196
+ Rendered dashboard/splash.html.haml within layouts/application (0.7ms)
1197
+ Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms)
1198
+
1199
+
1200
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:56 -0300
1201
+
1202
+
1203
+ Started GET "/assets/default.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:56 -0300
1204
+ Served asset /application.css - 304 Not Modified (0ms)
1205
+ Served asset /default.css - 304 Not Modified (2ms)
1206
+
1207
+
1208
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:56 -0300
1209
+
1210
+
1211
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:56 -0300
1212
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
1213
+ Served asset /application.js - 304 Not Modified (0ms)
1214
+
1215
+
1216
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:56 -0300
1217
+ Served asset /jquery.js - 304 Not Modified (0ms)
1218
+ Connecting to database specified by database.yml
1219
+ Connecting to database specified by database.yml
1220
+
1221
+
1222
+ Started GET "/" for 127.0.0.1 at 2012-07-31 12:02:13 -0300
1223
+ Processing by DashboardController#index as HTML
1224
+ Rendered dashboard/splash.html.haml within layouts/application (3.0ms)
1225
+ Completed 200 OK in 177ms (Views: 163.7ms | ActiveRecord: 0.0ms)
1226
+
1227
+
1228
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-07-31 12:02:13 -0300
1229
+ Served asset /application.css - 200 OK (4ms)
1230
+
1231
+
1232
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-31 12:02:13 -0300
1233
+ Served asset /jquery_ujs.js - 200 OK (2ms)
1234
+
1235
+
1236
+ Started GET "/assets/default.css?body=1" for 127.0.0.1 at 2012-07-31 12:02:13 -0300
1237
+ Served asset /default.css - 200 OK (2ms)
1238
+ Connecting to database specified by database.yml
1239
+
1240
+
1241
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-07-31 12:02:26 -0300
1242
+ Served asset /application.js - 200 OK (50ms)
1243
+
1244
+
1245
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-31 12:02:26 -0300
1246
+ Served asset /jquery.js - 200 OK (2ms)
1247
+
1248
+
1249
+ Started GET "/login" for 127.0.0.1 at 2012-07-31 12:03:24 -0300
1250
+ Processing by Iugu::SessionsController#new as HTML
1251
+ Rendered /Users/patricknegri/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.1.2/app/views/devise/shared/_links.erb (4.9ms)
1252
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/sessions/new.html.haml within layouts/application (7796.4ms)
1253
+ Completed 200 OK in 8042ms (Views: 7842.1ms | ActiveRecord: 182.7ms)
1254
+ Connecting to database specified by database.yml
1255
+
1256
+
1257
+ Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-07-31 13:13:42 -0300
1258
+
1259
+
1260
+ Started GET "/account/auth/facebook/callback?state=a887c6cc6f3e85ef65b08b1ae37621bfcc173eb5a12a0771&code=AQAKJ6UpCRS_p_pOcSh6oiTLVTlxnjRISM-DgaTlVnqexmoFo1iQGQqPUYl1SBz3-Yf7bIhX2mPZbNmWQyKi_cNvlZ2I24H8bR1EpFQ8B1ZV1OYBztjW8fARatYoaBpd3xhS3l6ZVbsCOG26nvXGls6-n5KACq5nThi32mRE_yz5EjNS2E-ISf0l5Qv7pqJ_y1Y" for 127.0.0.1 at 2012-07-31 13:13:44 -0300
1261
+ Processing by Iugu::OmniauthCallbacksController#facebook as HTML
1262
+ Parameters: {"state"=>"a887c6cc6f3e85ef65b08b1ae37621bfcc173eb5a12a0771", "code"=>"AQAKJ6UpCRS_p_pOcSh6oiTLVTlxnjRISM-DgaTlVnqexmoFo1iQGQqPUYl1SBz3-Yf7bIhX2mPZbNmWQyKi_cNvlZ2I24H8bR1EpFQ8B1ZV1OYBztjW8fARatYoaBpd3xhS3l6ZVbsCOG26nvXGls6-n5KACq5nThi32mRE_yz5EjNS2E-ISf0l5Qv7pqJ_y1Y"}
1263
+ DEPRECATION WARNING: Using `method_missing` to handle non existing actions is deprecated and will be removed in Rails 4.0, please use `action_missing` instead. (called from handle at /Users/patricknegri/Library/Application Support/Pow/Versions/0.4.0/node_modules/nack/lib/nack/server.rb:147)
1264
+ SocialAccount Load (283.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1139530567') LIMIT 1
1265
+ User Load (0.7ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1266
+  (0.8ms) BEGIN
1267
+  (0.1ms) COMMIT
1268
+ SELECT ACCOUNT
1269
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = '1') LIMIT 1
1270
+ Redirected to http://iugusdk.dev/
1271
+ Completed 302 Found in 1321ms (ActiveRecord: 606.4ms)
1272
+
1273
+
1274
+ Started GET "/" for 127.0.0.1 at 2012-07-31 13:13:49 -0300
1275
+ Processing by DashboardController#index as HTML
1276
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1277
+ Rendered dashboard/index.html.haml within layouts/application (1.3ms)
1278
+ Completed 200 OK in 244ms (Views: 230.1ms | ActiveRecord: 0.4ms)
1279
+
1280
+
1281
+ Started GET "/settings" for 127.0.0.1 at 2012-07-31 13:13:52 -0300
1282
+ Processing by Iugu::SettingsController#index as HTML
1283
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1284
+ Redirected to http://iugusdk.dev/settings/profile
1285
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1286
+
1287
+
1288
+ Started GET "/settings/profile" for 127.0.0.1 at 2012-07-31 13:13:53 -0300
1289
+ Processing by Iugu::ProfileController#index as HTML
1290
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1291
+ Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1
1292
+ DEPRECATION WARNING: :confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm => 'Text' }' instead. (called from block in ___sers_patricknegri__esenvolvimento_iugusdk_app_views_iugu_settings_profile_html_haml___3293581842198614446_2153038260 at /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml:63)
1293
+ SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1
1294
+ SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1
1295
+ SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1
1296
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (6182.3ms)
1297
+ Completed 200 OK in 6273ms (Views: 6246.1ms | ActiveRecord: 24.9ms)
1298
+
1299
+
1300
+ Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-31 13:13:59 -0300
1301
+ Served asset /settings.css - 200 OK (2ms)
1302
+
1303
+
1304
+ Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-31 13:13:59 -0300
1305
+ Served asset /settings_code.js - 200 OK (3ms)
1306
+ Connecting to database specified by database.yml
1307
+
1308
+
1309
+ Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-31 13:14:12 -0300
1310
+ Served asset /settings.js - 200 OK (53ms)
1311
+
1312
+
1313
+ Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-31 13:14:12 -0300
1314
+ Served asset /jquery-ui.js - 200 OK (3ms)
1315
+
1316
+
1317
+ Started GET "/assets/application_logo.png" for 127.0.0.1 at 2012-07-31 13:14:12 -0300
1318
+ Served asset /application_logo.png - 200 OK (19ms)
1319
+
1320
+
1321
+ Started GET "/settings/accounts" for 127.0.0.1 at 2012-07-31 13:14:15 -0300
1322
+ Processing by Iugu::AccountController#index as HTML
1323
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1324
+  (46.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1
1325
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1
1326
+ AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1
1327
+ AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
1328
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
1329
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (6018.5ms)
1330
+ Completed 200 OK in 6396ms (Views: 6181.4ms | ActiveRecord: 99.0ms)
1331
+
1332
+
1333
+ Started GET "/settings/account/1" for 127.0.0.1 at 2012-07-31 13:14:23 -0300
1334
+ Processing by Iugu::AccountController#view as HTML
1335
+ Parameters: {"id"=>"1"}
1336
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1337
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1
1338
+ AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`primary` = 1 LIMIT 1
1339
+ AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
1340
+ AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
1341
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
1342
+ AccountRole Exists (1.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1343
+ CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
1344
+ CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
1345
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
1346
+ CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1347
+ CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
1348
+ CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
1349
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
1350
+ CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1351
+ CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
1352
+ CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
1353
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
1354
+ CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1355
+ Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1
1356
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/account.html.haml within layouts/settings (690.3ms)
1357
+ Completed 200 OK in 889ms (Views: 708.2ms | ActiveRecord: 12.9ms)
1358
+
1359
+
1360
+ Started GET "/settings/account/1/domains" for 127.0.0.1 at 2012-07-31 13:14:28 -0300
1361
+ Processing by Iugu::AccountDomainsController#index as HTML
1362
+ Parameters: {"account_id"=>"1"}
1363
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1364
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
1365
+ Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1
1366
+ AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1
1367
+ AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1368
+ AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'admin' LIMIT 1
1369
+ Account Load (4.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1
1370
+ AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`account_id` = 1
1371
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/account_domains/index.html.haml within layouts/settings (11.5ms)
1372
+ Completed 200 OK in 43ms (Views: 21.8ms | ActiveRecord: 6.2ms)
1373
+
1374
+
1375
+ Started PUT "/settings/account/1/subdomain?id=1" for 127.0.0.1 at 2012-07-31 13:14:30 -0300
1376
+ Processing by Iugu::AccountDomainsController#update_subdomain as HTML
1377
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"rngr1HS6l9kqvtkPXxo6C24XedPbuTkdGz4ilFYKXIM=", "account"=>{"subdomain"=>""}, "commit"=>"Save", "id"=>"1", "account_id"=>"1"}
1378
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1379
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
1380
+ Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1
1381
+ AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1
1382
+ AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1383
+ AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'admin' LIMIT 1
1384
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1
1385
+  (0.1ms) BEGIN
1386
+ Account Exists (33.2ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`api_token` = BINARY '95a08be4b003cd259c4dd21a49aad384' AND `accounts`.`id` != 1) LIMIT 1
1387
+  (0.2ms) COMMIT
1388
+ Redirected to http://iugusdk.dev/settings/account/1/domains
1389
+ Completed 302 Found in 66ms (ActiveRecord: 35.3ms)
1390
+
1391
+
1392
+ Started GET "/settings/account/1/domains" for 127.0.0.1 at 2012-07-31 13:14:30 -0300
1393
+ Processing by Iugu::AccountDomainsController#index as HTML
1394
+ Parameters: {"account_id"=>"1"}
1395
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1396
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
1397
+ Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1
1398
+ AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1
1399
+ AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1400
+ AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'admin' LIMIT 1
1401
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1
1402
+ AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`account_id` = 1
1403
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/account_domains/index.html.haml within layouts/settings (4.8ms)
1404
+ Completed 200 OK in 88ms (Views: 78.6ms | ActiveRecord: 2.1ms)
1405
+
1406
+
1407
+ Started POST "/settings/account/1/domain" for 127.0.0.1 at 2012-07-31 13:14:31 -0300
1408
+ Processing by Iugu::AccountDomainsController#create as HTML
1409
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"rngr1HS6l9kqvtkPXxo6C24XedPbuTkdGz4ilFYKXIM=", "account_domain"=>{"url"=>""}, "commit"=>"Add", "account_id"=>"1"}
1410
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1411
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
1412
+ Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1
1413
+ AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1
1414
+ AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1415
+ AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'admin' LIMIT 1
1416
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1
1417
+  (0.2ms) BEGIN
1418
+  (0.1ms) ROLLBACK
1419
+  (0.1ms) BEGIN
1420
+  (0.1ms) COMMIT
1421
+ AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`account_id` = 1
1422
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/account_domains/index.html.haml within layouts/settings (4.9ms)
1423
+ Completed 200 OK in 28ms (Views: 13.4ms | ActiveRecord: 2.6ms)
1424
+
1425
+
1426
+ Started GET "/settings/accounts" for 127.0.0.1 at 2012-07-31 13:14:33 -0300
1427
+ Processing by Iugu::AccountController#index as HTML
1428
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1429
+  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1
1430
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1
1431
+ AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1
1432
+ AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
1433
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
1434
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (8.6ms)
1435
+ Completed 200 OK in 22ms (Views: 18.3ms | ActiveRecord: 2.1ms)
1436
+
1437
+
1438
+ Started GET "/settings/account/1" for 127.0.0.1 at 2012-07-31 13:14:34 -0300
1439
+ Processing by Iugu::AccountController#view as HTML
1440
+ Parameters: {"id"=>"1"}
1441
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1442
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1
1443
+ AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`primary` = 1 LIMIT 1
1444
+ AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
1445
+ AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
1446
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
1447
+ AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1448
+ CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
1449
+ CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
1450
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
1451
+ CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1452
+ CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
1453
+ CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
1454
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
1455
+ CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1456
+ CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
1457
+ CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
1458
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
1459
+ CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1460
+ Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1
1461
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/account.html.haml within layouts/settings (21.8ms)
1462
+ Completed 200 OK in 36ms (Views: 30.9ms | ActiveRecord: 2.4ms)
1463
+
1464
+
1465
+ Started PUT "/settings/account/1" for 127.0.0.1 at 2012-07-31 13:14:46 -0300
1466
+ Processing by Iugu::AccountController#update as HTML
1467
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"rngr1HS6l9kqvtkPXxo6C24XedPbuTkdGz4ilFYKXIM=", "account"=>{"name"=>""}, "commit"=>"Save", "id"=>"1"}
1468
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1469
+ AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1
1470
+ AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1471
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
1472
+  (0.1ms) BEGIN
1473
+ Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`api_token` = BINARY '95a08be4b003cd259c4dd21a49aad384' AND `accounts`.`id` != 1) LIMIT 1
1474
+  (50.5ms) UPDATE `accounts` SET `name` = '', `updated_at` = '2012-07-31 16:14:46' WHERE `accounts`.`id` = 1
1475
+  (20.3ms) COMMIT
1476
+ Redirected to http://iugusdk.dev/settings/account/1
1477
+ Completed 302 Found in 116ms (ActiveRecord: 72.4ms)
1478
+
1479
+
1480
+ Started GET "/settings/account/1" for 127.0.0.1 at 2012-07-31 13:14:46 -0300
1481
+ Processing by Iugu::AccountController#view as HTML
1482
+ Parameters: {"id"=>"1"}
1483
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1484
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1
1485
+ AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`primary` = 1 LIMIT 1
1486
+ AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
1487
+ AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
1488
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
1489
+ AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1490
+ CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
1491
+ CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
1492
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
1493
+ CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1494
+ CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
1495
+ CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
1496
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
1497
+ CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1498
+ CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
1499
+ CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
1500
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
1501
+ CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1502
+ Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1
1503
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/account.html.haml within layouts/settings (21.3ms)
1504
+ Completed 200 OK in 39ms (Views: 33.1ms | ActiveRecord: 2.6ms)
1505
+
1506
+
1507
+ Started GET "/settings/account/1/users" for 127.0.0.1 at 2012-07-31 13:14:52 -0300
1508
+ Processing by Iugu::AccountUsersController#index as HTML
1509
+ Parameters: {"account_id"=>"1"}
1510
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1511
+ Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
1512
+ Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1
1513
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
1514
+ AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1
1515
+ AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
1516
+ Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
1517
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1518
+ AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
1519
+ CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
1520
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
1521
+ AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1522
+ Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_1_destroy' LIMIT 1
1523
+ CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1524
+ CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
1525
+ CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
1526
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
1527
+ CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1528
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/account_users/index.html.haml within layouts/settings (19.7ms)
1529
+ Completed 200 OK in 112ms (Views: 106.5ms | ActiveRecord: 2.1ms)
1530
+
1531
+
1532
+ Started GET "/settings/accounts" for 127.0.0.1 at 2012-07-31 13:14:55 -0300
1533
+ Processing by Iugu::AccountController#index as HTML
1534
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1535
+  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1
1536
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1
1537
+ AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1
1538
+ AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
1539
+ Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
1540
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (7.9ms)
1541
+ Completed 200 OK in 19ms (Views: 15.8ms | ActiveRecord: 1.6ms)
1542
+
1543
+
1544
+ Started GET "/settings/account/1" for 127.0.0.1 at 2012-07-31 13:14:58 -0300
1545
+ Processing by Iugu::AccountController#view as HTML
1546
+ Parameters: {"id"=>"1"}
1547
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1548
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1
1549
+ AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`primary` = 1 LIMIT 1
1550
+ AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
1551
+ AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
1552
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
1553
+ AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1554
+ CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
1555
+ CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
1556
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
1557
+ CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1558
+ CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
1559
+ CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
1560
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
1561
+ CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1562
+ CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1
1563
+ CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1)
1564
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1)
1565
+ CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1
1566
+ Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1
1567
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/account.html.haml within layouts/settings (20.9ms)
1568
+ Completed 200 OK in 34ms (Views: 28.6ms | ActiveRecord: 2.3ms)
1569
+
1570
+
1571
+ Started GET "/settings/profile" for 127.0.0.1 at 2012-07-31 13:15:02 -0300
1572
+ Processing by Iugu::ProfileController#index as HTML
1573
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1574
+ Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1
1575
+ DEPRECATION WARNING: :confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm => 'Text' }' instead. (called from block in ___sers_patricknegri__esenvolvimento_iugusdk_app_views_iugu_settings_profile_html_haml___2152321752299560610_2169214360 at /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml:63)
1576
+ SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1
1577
+ SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1
1578
+ SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1
1579
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (124.8ms)
1580
+ Completed 200 OK in 140ms (Views: 120.7ms | ActiveRecord: 17.2ms)
1581
+
1582
+
1583
+ Started GET "/" for 127.0.0.1 at 2012-07-31 13:15:07 -0300
1584
+ Processing by DashboardController#index as HTML
1585
+ User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1586
+ Rendered dashboard/index.html.haml within layouts/application (1.1ms)
1587
+ Completed 200 OK in 61ms (Views: 59.3ms | ActiveRecord: 0.3ms)
1588
+
1589
+
1590
+ Started GET "/settings" for 127.0.0.1 at 2012-07-31 13:15:08 -0300
1591
+ Processing by Iugu::SettingsController#index as HTML
1592
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1593
+ Redirected to http://iugusdk.dev/settings/profile
1594
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
1595
+
1596
+
1597
+ Started GET "/settings/profile" for 127.0.0.1 at 2012-07-31 13:15:08 -0300
1598
+ Processing by Iugu::ProfileController#index as HTML
1599
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1600
+ Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1
1601
+ DEPRECATION WARNING: :confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm => 'Text' }' instead. (called from block in ___sers_patricknegri__esenvolvimento_iugusdk_app_views_iugu_settings_profile_html_haml___2152321752299560610_2169214360 at /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml:63)
1602
+ SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1
1603
+ SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1
1604
+ SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1
1605
+ Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (91.7ms)
1606
+ Completed 200 OK in 102ms (Views: 98.8ms | ActiveRecord: 1.6ms)
1607
+
1608
+
1609
+ Started GET "/" for 127.0.0.1 at 2012-07-31 13:15:09 -0300
1610
+ Processing by DashboardController#index as HTML
1611
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1612
+ Rendered dashboard/index.html.haml within layouts/application (0.1ms)
1613
+ Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.4ms)
1614
+
1615
+
1616
+ Started DELETE "/logout" for 127.0.0.1 at 2012-07-31 13:15:10 -0300
1617
+ Processing by Iugu::SessionsController#destroy as HTML
1618
+ Parameters: {"authenticity_token"=>"rngr1HS6l9kqvtkPXxo6C24XedPbuTkdGz4ilFYKXIM="}
1619
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
1620
+  (0.2ms) BEGIN
1621
+  (0.1ms) COMMIT
1622
+ Redirected to http://iugusdk.dev/
1623
+ Completed 302 Found in 19ms (ActiveRecord: 0.7ms)
1624
+
1625
+
1626
+ Started GET "/" for 127.0.0.1 at 2012-07-31 13:15:10 -0300
1627
+ Processing by DashboardController#index as HTML
1628
+ Rendered dashboard/splash.html.haml within layouts/application (2.4ms)
1629
+ Completed 200 OK in 80ms (Views: 79.1ms | ActiveRecord: 0.0ms)
1630
+
1631
+
1632
+ Started GET "/" for 127.0.0.1 at 2012-07-31 13:15:13 -0300
1633
+ Processing by DashboardController#index as HTML
1634
+ Rendered dashboard/splash.html.haml within layouts/application (0.8ms)
1635
+ Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms)
1636
+
1637
+
1638
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-07-31 13:15:13 -0300
1639
+
1640
+
1641
+ Started GET "/assets/default.css?body=1" for 127.0.0.1 at 2012-07-31 13:15:13 -0300
1642
+ Served asset /default.css - 304 Not Modified (1ms)
1643
+ Served asset /application.css - 304 Not Modified (6ms)
1644
+
1645
+
1646
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-07-31 13:15:13 -0300
1647
+
1648
+
1649
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-31 13:15:13 -0300
1650
+ Served asset /jquery_ujs.js - 304 Not Modified (2ms)
1651
+ Served asset /application.js - 304 Not Modified (5ms)
1652
+
1653
+
1654
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-31 13:15:13 -0300
1655
+ Served asset /jquery.js - 304 Not Modified (2ms)
1656
+ Connecting to database specified by database.yml
1657
+
1658
+
1659
+ Started GET "/" for 127.0.0.1 at 2012-07-31 20:26:46 -0300
1660
+ Processing by DashboardController#index as HTML
1661
+ Rendered dashboard/splash.html.haml within layouts/application (4.0ms)
1662
+ Completed 200 OK in 251ms (Views: 230.1ms | ActiveRecord: 0.0ms)
1663
+
1664
+
1665
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-07-31 20:26:46 -0300
1666
+ Served asset /application.css - 304 Not Modified (5ms)
1667
+
1668
+
1669
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-31 20:26:46 -0300
1670
+ Served asset /jquery_ujs.js - 304 Not Modified (7ms)
1671
+
1672
+
1673
+ Started GET "/assets/default.css?body=1" for 127.0.0.1 at 2012-07-31 20:26:46 -0300
1674
+ Served asset /default.css - 304 Not Modified (2ms)
1675
+ Connecting to database specified by database.yml
1676
+
1677
+
1678
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-07-31 20:27:00 -0300
1679
+ Served asset /application.js - 304 Not Modified (6ms)
1680
+
1681
+
1682
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-31 20:27:00 -0300
1683
+ Served asset /jquery.js - 304 Not Modified (2ms)