deal_redemptions 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa79c20901b82ad1ece7615c38436ec366691059
4
- data.tar.gz: 21d77a4b1aca8f9c5ba4255d307f1f05f6e78533
3
+ metadata.gz: 11145f66dc4478e7e6fb9de8084a8f38eeaeade4
4
+ data.tar.gz: d4d78bb509e8138f7a529c90467c4dd7ecd8602a
5
5
  SHA512:
6
- metadata.gz: 6035d4040643b51a627ecf86a08825247f071e4474e2a85b6eb2d12e173b8bf184beebfcf25d417a4eea1cd8dc50ded52537add967b148d8d36f1382f1eb7c3e
7
- data.tar.gz: a8b1cf5705378a0844e7b2ddf736477998d19ca6e7e6debe6fe05c585c557e1a402ca71e9e59d4462900e63b9e316aef5f8e8973b1c812b0d262d378594091e0
6
+ metadata.gz: 605e783d9f1afe145a8c21f01b234819b13c1212bd00d4d20ee6ef27b3c6008569f85a9e7e2ff8ea0c90f8f25b3c5c714321304ea197dbe93598b17565dac724
7
+ data.tar.gz: 352ab17c98e2803466cbf893f393d865b050cc5f9edbdb7faadde9ebca3c92e3ced4bb5dfe1d23abd6ea0c47077d2414e1cb42863d8ffd19656714c328144560
@@ -14,45 +14,50 @@ module DealRedemptions
14
14
  redeem = DealRedemptions::Redemptions::Redeem.new(@company)
15
15
  redeem_codes = DealRedemptions::RedeemCode.find_all_by_code params[:redeem_codes]
16
16
 
17
- redeem.validate_redeem_codes redeem_codes do |validate|
18
- # Returns true, then all codes validated
19
- if validate
20
- begin
21
- ActiveRecord::Base.transaction do
22
- # Save redemption
23
- @redeem = DealRedemptions::Redemption.create(redemption_params)
24
- # Save redemption codes
25
- redeem_codes.each do |code|
26
- code.redemption_id = @redeem.id
27
- code.status = 2
28
- code.save
17
+ if redeem_codes.count > 0
18
+ redeem.validate_redeem_codes redeem_codes do |validate|
19
+ # Returns true, then all codes validated
20
+ if validate
21
+ begin
22
+ ActiveRecord::Base.transaction do
23
+ # Save redemption
24
+ @redeem = DealRedemptions::Redemption.create(redemption_params)
25
+ # Save redemption codes
26
+ redeem_codes.each do |code|
27
+ code.redemption_id = @redeem.id
28
+ code.status = 2
29
+ code.save
30
+ end
29
31
  end
30
- end
31
32
 
32
- # Save to mailing list if opt in
33
- if params[:redemption][:mailing_list]
34
- begin
35
- redemption = params[:redemption]
36
- DealRedemptions::MailingList.create(
37
- first_name: redemption[:first_name],
38
- last_name: redemption[:last_name],
39
- email_address: redemption[:email_address]
40
- )
33
+ # Save to mailing list if opt in
34
+ if params[:redemption][:mailing_list]
35
+ begin
36
+ redemption = params[:redemption]
37
+ DealRedemptions::MailingList.create(
38
+ first_name: redemption[:first_name],
39
+ last_name: redemption[:last_name],
40
+ email_address: redemption[:email_address]
41
+ )
42
+ end
41
43
  end
42
- end
43
44
 
44
- # Send confirmation email
45
- DealRedemptions::RedemptionMailer.confirmation(@redemption).deliver
45
+ # Send confirmation email
46
+ DealRedemptions::RedemptionMailer.confirmation(@redemption).deliver
46
47
 
47
- redirect_to thank_you_path and return
48
- rescue
49
- flash[:notice] = 'Something went wrong. Please try again.'
48
+ redirect_to thank_you_path and return
49
+ rescue
50
+ flash[:notice] = 'Something went wrong. Please try again.'
51
+ render :new
52
+ end
53
+ else
54
+ flash[:notice] = 'Please enter redemption codes that have not been previously used.'
50
55
  render :new
51
56
  end
52
- else
53
- flash[:notice] = 'Please make sure to only redeem valid redemption codes.'
54
- render :new
55
57
  end
58
+ else
59
+ flash[:notice] = 'Please make sure to only redeem valid redemption codes.'
60
+ render :new
56
61
  end
57
62
  end
58
63
 
@@ -1,3 +1,3 @@
1
1
  module DealRedemptions
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
Binary file
@@ -338990,3 +338990,2676 @@ Note: If this is not Example User, please disregard this email.
338990
338990
   (0.0ms) commit transaction
338991
338991
   (0.0ms) begin transaction
338992
338992
   (0.0ms) rollback transaction
338993
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
338994
+  (1.1ms) DELETE FROM "deal_redemptions_companies";
338995
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
338996
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'deal_redemptions_companies';
338997
+  (0.8ms) DELETE FROM "deal_redemptions_mailing_lists";
338998
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
338999
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'deal_redemptions_mailing_lists';
339000
+  (0.7ms) DELETE FROM "deal_redemptions_products";
339001
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
339002
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'deal_redemptions_products';
339003
+  (0.8ms) DELETE FROM "deal_redemptions_redeem_codes";
339004
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
339005
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'deal_redemptions_redeem_codes';
339006
+  (0.7ms) DELETE FROM "deal_redemptions_redemptions";
339007
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
339008
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'deal_redemptions_redemptions';
339009
+  (0.8ms) DELETE FROM "deal_redemptions_users";
339010
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
339011
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'deal_redemptions_users';
339012
+  (0.1ms) begin transaction
339013
+  (0.0ms) commit transaction
339014
+  (0.0ms) begin transaction
339015
+  (0.1ms) rollback transaction
339016
+  (0.0ms) begin transaction
339017
+  (0.0ms) commit transaction
339018
+  (0.0ms) begin transaction
339019
+  (0.0ms) rollback transaction
339020
+  (0.0ms) begin transaction
339021
+  (0.0ms) commit transaction
339022
+  (0.0ms) begin transaction
339023
+  (0.1ms) rollback transaction
339024
+  (0.0ms) begin transaction
339025
+  (0.0ms) commit transaction
339026
+  (0.0ms) begin transaction
339027
+  (0.0ms) rollback transaction
339028
+  (0.0ms) begin transaction
339029
+  (0.0ms) commit transaction
339030
+  (0.0ms) begin transaction
339031
+  (0.1ms) rollback transaction
339032
+  (0.0ms) begin transaction
339033
+  (0.0ms) commit transaction
339034
+  (0.0ms) begin transaction
339035
+  (0.0ms) rollback transaction
339036
+  (0.0ms) begin transaction
339037
+  (0.0ms) commit transaction
339038
+  (0.0ms) begin transaction
339039
+  (0.0ms) rollback transaction
339040
+  (0.0ms) begin transaction
339041
+  (0.0ms) commit transaction
339042
+  (0.0ms) begin transaction
339043
+  (0.0ms) rollback transaction
339044
+  (0.0ms) begin transaction
339045
+  (0.0ms) commit transaction
339046
+  (0.0ms) begin transaction
339047
+ DealRedemptions::MailingList Load (0.1ms) SELECT "deal_redemptions_mailing_lists".* FROM "deal_redemptions_mailing_lists" ORDER BY "deal_redemptions_mailing_lists"."id" ASC LIMIT 1
339048
+  (0.0ms) SAVEPOINT active_record_1
339049
+ SQL (0.3ms) INSERT INTO "deal_redemptions_mailing_lists" ("created_at", "email_address", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-09-04 16:48:32.188633"], ["email_address", "0"], ["updated_at", "2014-09-04 16:48:32.188633"]]
339050
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339051
+ DealRedemptions::MailingList Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_mailing_lists" WHERE "deal_redemptions_mailing_lists"."email_address" = '0' LIMIT 1
339052
+ DealRedemptions::MailingList Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_mailing_lists" WHERE "deal_redemptions_mailing_lists"."email_address" = '0' LIMIT 1
339053
+  (0.6ms) rollback transaction
339054
+  (0.0ms) begin transaction
339055
+  (0.0ms) commit transaction
339056
+  (0.0ms) begin transaction
339057
+ DealRedemptions::MailingList Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_mailing_lists" WHERE "deal_redemptions_mailing_lists"."email_address" IS NULL LIMIT 1
339058
+ DealRedemptions::MailingList Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_mailing_lists" WHERE "deal_redemptions_mailing_lists"."email_address" IS NULL LIMIT 1
339059
+  (0.0ms) rollback transaction
339060
+  (0.0ms) begin transaction
339061
+  (0.0ms) commit transaction
339062
+  (0.0ms) begin transaction
339063
+ Processing by DealRedemptions::Admin::SessionsController#new as HTML
339064
+ Rendered /Users/allancutler/Documents/Work/Smile Sciences/Redemptions/deal_redemptions/app/views/deal_redemptions/admin/sessions/new.html.haml within layouts//deal_redemptions/admin/auth (0.2ms)
339065
+ Completed 200 OK in 7ms (Views: 7.3ms | ActiveRecord: 0.0ms)
339066
+  (0.1ms) rollback transaction
339067
+  (0.0ms) begin transaction
339068
+  (0.0ms) commit transaction
339069
+  (0.0ms) begin transaction
339070
+  (0.1ms) SAVEPOINT active_record_1
339071
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
339072
+ Binary data inserted for `string` type on column `password_hash`
339073
+ Binary data inserted for `string` type on column `password_salt`
339074
+ SQL (0.4ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:32.301152"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:32.300243"], ["last_name", "Doe"], ["password_hash", "$2a$10$FCHcxRwujPAooo6qRt6tcuwSlHrW9sf0..as3v5drqF7tERIbSp8m"], ["password_salt", "$2a$10$FCHcxRwujPAooo6qRt6tcu"], ["updated_at", "2014-09-04 16:48:32.301152"]]
339075
+
339076
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 19.6ms
339077
+
339078
+ Sent mail to johndoe@gmail.com (9.2ms)
339079
+ Date: Thu, 04 Sep 2014 09:48:32 -0700
339080
+ From: noreply@domain.com
339081
+ To: johndoe@gmail.com
339082
+ Message-ID: <540897e050174_15b443fecad85a6e0199f1@Allans-MacBook-Pro.local.mail>
339083
+ Subject: New User Confirmation
339084
+ Mime-Version: 1.0
339085
+ Content-Type: text/html;
339086
+ charset=UTF-8
339087
+ Content-Transfer-Encoding: 7bit
339088
+
339089
+ Hi John Doe,
339090
+
339091
+ Below are your login credentials:
339092
+
339093
+ Email: johndoe@gmail.com
339094
+ Password: test123
339095
+
339096
+ Note: If this is not John Doe, please disregard this email.
339097
+  (0.1ms) RELEASE SAVEPOINT active_record_1
339098
+  (0.1ms) SAVEPOINT active_record_1
339099
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" = 'Groupon' LIMIT 1
339100
+ DealRedemptions::Company Exists (0.0ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = 'groupon' LIMIT 1
339101
+ SQL (1.1ms) INSERT INTO "deal_redemptions_companies" ("created_at", "description", "id", "name", "slug", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:32.341029"], ["description", "Please use the 2nd code, not internal code."], ["id", 1], ["name", "Groupon"], ["slug", "groupon"], ["updated_at", "2014-09-04 16:48:32.341029"], ["url", "http://www.groupon.com"]]
339102
+  (0.1ms) RELEASE SAVEPOINT active_record_1
339103
+  (0.1ms) SAVEPOINT active_record_1
339104
+ SQL (0.1ms) INSERT INTO "deal_redemptions_products" ("created_at", "id", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:32.348649"], ["id", 1], ["name", "Smile Sciences Teeth Whitening Pen"], ["updated_at", "2014-09-04 16:48:32.348649"], ["url", "http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"]]
339105
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339106
+ Processing by DealRedemptions::Admin::ImportController#new as HTML
339107
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
339108
+ Completed 200 OK in 43ms (Views: 39.3ms | ActiveRecord: 0.1ms)
339109
+ DealRedemptions::Product Load (0.1ms) SELECT "deal_redemptions_products".* FROM "deal_redemptions_products"
339110
+  (0.4ms) rollback transaction
339111
+  (0.0ms) begin transaction
339112
+  (0.0ms) commit transaction
339113
+  (0.0ms) begin transaction
339114
+  (0.0ms) SAVEPOINT active_record_1
339115
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
339116
+ Binary data inserted for `string` type on column `password_hash`
339117
+ Binary data inserted for `string` type on column `password_salt`
339118
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:32.465467"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:32.465310"], ["last_name", "Doe"], ["password_hash", "$2a$10$/8Fxn63RMU0kNzEZiimUeecabOFE9kPovpRmu5EYsO5ZClq3dhNgy"], ["password_salt", "$2a$10$/8Fxn63RMU0kNzEZiimUee"], ["updated_at", "2014-09-04 16:48:32.465467"]]
339119
+
339120
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.6ms
339121
+
339122
+ Sent mail to johndoe@gmail.com (4.5ms)
339123
+ Date: Thu, 04 Sep 2014 09:48:32 -0700
339124
+ From: noreply@domain.com
339125
+ To: johndoe@gmail.com
339126
+ Message-ID: <540897e073463_15b443fecad85a6e020035@Allans-MacBook-Pro.local.mail>
339127
+ Subject: New User Confirmation
339128
+ Mime-Version: 1.0
339129
+ Content-Type: text/html;
339130
+ charset=UTF-8
339131
+ Content-Transfer-Encoding: 7bit
339132
+
339133
+ Hi John Doe,
339134
+
339135
+ Below are your login credentials:
339136
+
339137
+ Email: johndoe@gmail.com
339138
+ Password: test123
339139
+
339140
+ Note: If this is not John Doe, please disregard this email.
339141
+  (0.1ms) RELEASE SAVEPOINT active_record_1
339142
+  (0.0ms) SAVEPOINT active_record_1
339143
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" = 'Groupon' LIMIT 1
339144
+ DealRedemptions::Company Exists (0.0ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = 'groupon' LIMIT 1
339145
+ SQL (0.3ms) INSERT INTO "deal_redemptions_companies" ("created_at", "description", "id", "name", "slug", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:32.478054"], ["description", "Please use the 2nd code, not internal code."], ["id", 1], ["name", "Groupon"], ["slug", "groupon"], ["updated_at", "2014-09-04 16:48:32.478054"], ["url", "http://www.groupon.com"]]
339146
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339147
+  (0.0ms) SAVEPOINT active_record_1
339148
+ SQL (0.1ms) INSERT INTO "deal_redemptions_products" ("created_at", "id", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:32.479594"], ["id", 1], ["name", "Smile Sciences Teeth Whitening Pen"], ["updated_at", "2014-09-04 16:48:32.479594"], ["url", "http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"]]
339149
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339150
+ Processing by DealRedemptions::Admin::ImportController#new as HTML
339151
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
339152
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
339153
+ DealRedemptions::Company Load (0.1ms) SELECT "deal_redemptions_companies".* FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."active" = 1
339154
+  (0.8ms) rollback transaction
339155
+  (0.0ms) begin transaction
339156
+  (0.0ms) commit transaction
339157
+  (0.0ms) begin transaction
339158
+  (0.1ms) SAVEPOINT active_record_1
339159
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'sample-user@dealsiteredemptions.com' LIMIT 1
339160
+ Binary data inserted for `string` type on column `password_hash`
339161
+ Binary data inserted for `string` type on column `password_salt`
339162
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:32.562085"], ["email", "sample-user@dealsiteredemptions.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:32.561922"], ["last_name", "Doe"], ["password_hash", "$2a$10$w92RQwG6hP2IxUjn2MC..eTox8RyZKUI5OOoJlwHLZ1uUhGUBtW7q"], ["password_salt", "$2a$10$w92RQwG6hP2IxUjn2MC..e"], ["updated_at", "2014-09-04 16:48:32.562085"]]
339163
+
339164
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.6ms
339165
+
339166
+ Sent mail to sample-user@dealsiteredemptions.com (4.7ms)
339167
+ Date: Thu, 04 Sep 2014 09:48:32 -0700
339168
+ From: noreply@domain.com
339169
+ To: sample-user@dealsiteredemptions.com
339170
+ Message-ID: <540897e08ada2_15b443fecad85a6e020147@Allans-MacBook-Pro.local.mail>
339171
+ Subject: New User Confirmation
339172
+ Mime-Version: 1.0
339173
+ Content-Type: text/html;
339174
+ charset=UTF-8
339175
+ Content-Transfer-Encoding: 7bit
339176
+
339177
+ Hi John Doe,
339178
+
339179
+ Below are your login credentials:
339180
+
339181
+ Email: sample-user@dealsiteredemptions.com
339182
+ Password: password
339183
+
339184
+ Note: If this is not John Doe, please disregard this email.
339185
+  (0.1ms) RELEASE SAVEPOINT active_record_1
339186
+  (0.6ms) rollback transaction
339187
+  (0.1ms) begin transaction
339188
+  (0.0ms) commit transaction
339189
+  (0.0ms) begin transaction
339190
+  (0.0ms) SAVEPOINT active_record_1
339191
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'sample-user@dealsiteredemptions.com' LIMIT 1
339192
+ Binary data inserted for `string` type on column `password_hash`
339193
+ Binary data inserted for `string` type on column `password_salt`
339194
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:32.641782"], ["email", "sample-user@dealsiteredemptions.com"], ["first_name", "Example"], ["last_login", "2014-09-04 16:48:32.641634"], ["last_name", "User"], ["password_hash", "$2a$10$r557WjzofZYLUD2XxEtVh.oEKaaFOitoWpnfaK8MTRrYFBN53298m"], ["password_salt", "$2a$10$r557WjzofZYLUD2XxEtVh."], ["updated_at", "2014-09-04 16:48:32.641782"]]
339195
+
339196
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.6ms
339197
+
339198
+ Sent mail to sample-user@dealsiteredemptions.com (4.6ms)
339199
+ Date: Thu, 04 Sep 2014 09:48:32 -0700
339200
+ From: noreply@domain.com
339201
+ To: sample-user@dealsiteredemptions.com
339202
+ Message-ID: <540897e09e52c_15b443fecad85a6e020275@Allans-MacBook-Pro.local.mail>
339203
+ Subject: New User Confirmation
339204
+ Mime-Version: 1.0
339205
+ Content-Type: text/html;
339206
+ charset=UTF-8
339207
+ Content-Transfer-Encoding: 7bit
339208
+
339209
+ Hi Example User,
339210
+
339211
+ Below are your login credentials:
339212
+
339213
+ Email: sample-user@dealsiteredemptions.com
339214
+ Password: password
339215
+
339216
+ Note: If this is not Example User, please disregard this email.
339217
+  (0.1ms) RELEASE SAVEPOINT active_record_1
339218
+  (0.6ms) rollback transaction
339219
+  (0.1ms) begin transaction
339220
+  (0.0ms) commit transaction
339221
+  (0.0ms) begin transaction
339222
+  (0.0ms) rollback transaction
339223
+  (0.0ms) begin transaction
339224
+  (0.0ms) commit transaction
339225
+  (0.0ms) begin transaction
339226
+ Processing by DealRedemptions::WelcomeController#index as HTML
339227
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)
339228
+  (0.1ms) rollback transaction
339229
+  (0.0ms) begin transaction
339230
+  (0.0ms) commit transaction
339231
+  (0.0ms) begin transaction
339232
+ Processing by DealRedemptions::WelcomeController#index as HTML
339233
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
339234
+  (0.0ms) rollback transaction
339235
+  (0.0ms) begin transaction
339236
+  (0.0ms) commit transaction
339237
+  (0.0ms) begin transaction
339238
+ Processing by DealRedemptions::WelcomeController#index as HTML
339239
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
339240
+  (0.0ms) rollback transaction
339241
+  (0.0ms) begin transaction
339242
+  (0.0ms) commit transaction
339243
+  (0.0ms) begin transaction
339244
+  (0.0ms) rollback transaction
339245
+  (0.0ms) begin transaction
339246
+  (0.0ms) commit transaction
339247
+  (0.0ms) begin transaction
339248
+  (0.0ms) rollback transaction
339249
+  (0.0ms) begin transaction
339250
+  (0.0ms) commit transaction
339251
+  (0.0ms) begin transaction
339252
+  (0.0ms) rollback transaction
339253
+  (0.0ms) begin transaction
339254
+  (0.0ms) commit transaction
339255
+  (0.0ms) begin transaction
339256
+  (0.0ms) SAVEPOINT active_record_1
339257
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" = 'Groupon' LIMIT 1
339258
+ DealRedemptions::Company Exists (0.0ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = 'groupon' LIMIT 1
339259
+ SQL (0.2ms) INSERT INTO "deal_redemptions_companies" ("created_at", "description", "id", "name", "slug", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:32.685587"], ["description", "Please use the 2nd code, not internal code."], ["id", 1], ["name", "Groupon"], ["slug", "groupon"], ["updated_at", "2014-09-04 16:48:32.685587"], ["url", "http://www.groupon.com"]]
339260
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339261
+ Processing by DealRedemptions::RedeemController#new as HTML
339262
+ Parameters: {"company"=>"groupon"}
339263
+ DealRedemptions::Company Load (0.1ms) SELECT "deal_redemptions_companies".* FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = 'groupon' LIMIT 1
339264
+ Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)
339265
+  (0.4ms) rollback transaction
339266
+  (0.0ms) begin transaction
339267
+  (0.0ms) commit transaction
339268
+  (0.0ms) begin transaction
339269
+  (0.0ms) SAVEPOINT active_record_1
339270
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" = 'Groupon' LIMIT 1
339271
+ DealRedemptions::Company Exists (0.0ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = 'groupon' LIMIT 1
339272
+ SQL (0.2ms) INSERT INTO "deal_redemptions_companies" ("created_at", "description", "id", "name", "slug", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:32.696184"], ["description", "Please use the 2nd code, not internal code."], ["id", 1], ["name", "Groupon"], ["slug", "groupon"], ["updated_at", "2014-09-04 16:48:32.696184"], ["url", "http://www.groupon.com"]]
339273
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339274
+ Processing by DealRedemptions::RedeemController#new as HTML
339275
+ Parameters: {"company"=>"groupon"}
339276
+ DealRedemptions::Company Load (0.1ms) SELECT "deal_redemptions_companies".* FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = 'groupon' LIMIT 1
339277
+ Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
339278
+  (0.3ms) rollback transaction
339279
+  (0.0ms) begin transaction
339280
+  (0.1ms) commit transaction
339281
+  (0.0ms) begin transaction
339282
+  (0.0ms) SAVEPOINT active_record_1
339283
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" = 'Groupon' LIMIT 1
339284
+ DealRedemptions::Company Exists (0.0ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = 'groupon' LIMIT 1
339285
+ SQL (0.2ms) INSERT INTO "deal_redemptions_companies" ("created_at", "description", "id", "name", "slug", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:32.703713"], ["description", "Please use the 2nd code, not internal code."], ["id", 1], ["name", "Groupon"], ["slug", "groupon"], ["updated_at", "2014-09-04 16:48:32.703713"], ["url", "http://www.groupon.com"]]
339286
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339287
+ Processing by DealRedemptions::RedeemController#new as HTML
339288
+ Parameters: {"company"=>""}
339289
+ DealRedemptions::Company Load (0.1ms) SELECT "deal_redemptions_companies".* FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = '' LIMIT 1
339290
+ Redirected to http://test.host/deal_redemptions/
339291
+ Filter chain halted as :find_company rendered or redirected
339292
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
339293
+  (0.4ms) rollback transaction
339294
+  (0.0ms) begin transaction
339295
+  (0.0ms) commit transaction
339296
+  (0.0ms) begin transaction
339297
+  (0.0ms) rollback transaction
339298
+  (0.0ms) begin transaction
339299
+  (0.0ms) commit transaction
339300
+  (0.0ms) begin transaction
339301
+  (0.0ms) rollback transaction
339302
+  (0.0ms) begin transaction
339303
+  (0.0ms) commit transaction
339304
+  (0.0ms) begin transaction
339305
+  (0.0ms) SAVEPOINT active_record_1
339306
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
339307
+ Binary data inserted for `string` type on column `password_hash`
339308
+ Binary data inserted for `string` type on column `password_salt`
339309
+ SQL (0.2ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:32.777721"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:32.777556"], ["last_name", "Doe"], ["password_hash", "$2a$10$OKfHcpzwB35Uw65zQqj5M.MSvLfIdjMG09GA6DHt3gMjgiYIwUfWW"], ["password_salt", "$2a$10$OKfHcpzwB35Uw65zQqj5M."], ["updated_at", "2014-09-04 16:48:32.777721"]]
339310
+
339311
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.4ms
339312
+
339313
+ Sent mail to johndoe@gmail.com (4.3ms)
339314
+ Date: Thu, 04 Sep 2014 09:48:32 -0700
339315
+ From: noreply@domain.com
339316
+ To: johndoe@gmail.com
339317
+ Message-ID: <540897e0bf722_15b443fecad85a6e02036@Allans-MacBook-Pro.local.mail>
339318
+ Subject: New User Confirmation
339319
+ Mime-Version: 1.0
339320
+ Content-Type: text/html;
339321
+ charset=UTF-8
339322
+ Content-Transfer-Encoding: 7bit
339323
+
339324
+ Hi John Doe,
339325
+
339326
+ Below are your login credentials:
339327
+
339328
+ Email: johndoe@gmail.com
339329
+ Password: test123
339330
+
339331
+ Note: If this is not John Doe, please disregard this email.
339332
+  (0.1ms) RELEASE SAVEPOINT active_record_1
339333
+  (0.0ms) SAVEPOINT active_record_1
339334
+ SQL (0.4ms) INSERT INTO "deal_redemptions_redemptions" ("address1", "address2", "city", "comments", "company_id", "country", "created_at", "email_address", "first_name", "id", "last_name", "phone", "state", "updated_at", "zip_code") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 N Street Rd"], ["address2", ""], ["city", "Valencia"], ["comments", "Comments going here."], ["company_id", 1], ["country", "United States"], ["created_at", "2014-09-04 16:48:32.789113"], ["email_address", "john@doe.com"], ["first_name", "John"], ["id", 1], ["last_name", "Doe"], ["phone", "6615557897"], ["state", "CA"], ["updated_at", "2014-09-04 16:48:32.789113"], ["zip_code", "91351"]]
339335
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339336
+  (0.0ms) SAVEPOINT active_record_1
339337
+ SQL (0.1ms) INSERT INTO "deal_redemptions_redemptions" ("address1", "address2", "city", "comments", "company_id", "country", "created_at", "email_address", "first_name", "id", "last_name", "phone", "state", "updated_at", "zip_code") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "200 S Street Rd"], ["address2", ""], ["city", "Valencia"], ["comments", ""], ["company_id", 1], ["country", "United States"], ["created_at", "2014-09-04 16:48:32.791571"], ["email_address", "john@smith.com"], ["first_name", "John"], ["id", 2], ["last_name", "Smith"], ["phone", "6616005555"], ["state", "CA"], ["updated_at", "2014-09-04 16:48:32.791571"], ["zip_code", "91355"]]
339338
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339339
+  (0.0ms) SAVEPOINT active_record_1
339340
+ SQL (0.1ms) INSERT INTO "deal_redemptions_redemptions" ("address1", "address2", "city", "comments", "company_id", "country", "created_at", "email_address", "first_name", "id", "last_name", "phone", "state", "updated_at", "zip_code") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "3000 E Street Rd"], ["address2", ""], ["city", "Valencia"], ["comments", "Please redeem voucher."], ["company_id", 1], ["country", "United States"], ["created_at", "2014-09-04 16:48:32.793451"], ["email_address", "joan@smithson.com"], ["first_name", "Joan"], ["id", 3], ["last_name", "Smithson"], ["phone", "6618881111"], ["state", "CA"], ["updated_at", "2014-09-04 16:48:32.793451"], ["zip_code", "91355"]]
339341
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339342
+ Processing by DealRedemptions::Admin::RedemptionsController#show as HTML
339343
+ Parameters: {"id"=>"1"}
339344
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
339345
+ DealRedemptions::Redemption Load (0.1ms) SELECT "deal_redemptions_redemptions".* FROM "deal_redemptions_redemptions" WHERE "deal_redemptions_redemptions"."id" = ? LIMIT 1 [["id", 1]]
339346
+ DealRedemptions::RedeemCode Load (0.1ms) SELECT "deal_redemptions_redeem_codes".* FROM "deal_redemptions_redeem_codes" WHERE "deal_redemptions_redeem_codes"."redemption_id" IN (1)
339347
+ Completed 200 OK in 47ms (Views: 2.1ms | ActiveRecord: 0.5ms)
339348
+  (0.4ms) rollback transaction
339349
+  (0.0ms) begin transaction
339350
+  (0.0ms) commit transaction
339351
+  (0.0ms) begin transaction
339352
+  (0.0ms) SAVEPOINT active_record_1
339353
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
339354
+ Binary data inserted for `string` type on column `password_hash`
339355
+ Binary data inserted for `string` type on column `password_salt`
339356
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:32.913715"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:32.913542"], ["last_name", "Doe"], ["password_hash", "$2a$10$j4cWpAO16bQQg1SvXiZcVu98DlFvGap7TCM2BC3xoSoMC95UeZ9pa"], ["password_salt", "$2a$10$j4cWpAO16bQQg1SvXiZcVu"], ["updated_at", "2014-09-04 16:48:32.913715"]]
339357
+
339358
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.9ms
339359
+
339360
+ Sent mail to johndoe@gmail.com (4.5ms)
339361
+ Date: Thu, 04 Sep 2014 09:48:32 -0700
339362
+ From: noreply@domain.com
339363
+ To: johndoe@gmail.com
339364
+ Message-ID: <540897e0e0d13_15b443fecad85a6e02049@Allans-MacBook-Pro.local.mail>
339365
+ Subject: New User Confirmation
339366
+ Mime-Version: 1.0
339367
+ Content-Type: text/html;
339368
+ charset=UTF-8
339369
+ Content-Transfer-Encoding: 7bit
339370
+
339371
+ Hi John Doe,
339372
+
339373
+ Below are your login credentials:
339374
+
339375
+ Email: johndoe@gmail.com
339376
+ Password: test123
339377
+
339378
+ Note: If this is not John Doe, please disregard this email.
339379
+  (0.1ms) RELEASE SAVEPOINT active_record_1
339380
+  (0.0ms) SAVEPOINT active_record_1
339381
+ SQL (0.3ms) INSERT INTO "deal_redemptions_redemptions" ("address1", "address2", "city", "comments", "company_id", "country", "created_at", "email_address", "first_name", "id", "last_name", "phone", "state", "updated_at", "zip_code") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 N Street Rd"], ["address2", ""], ["city", "Valencia"], ["comments", "Comments going here."], ["company_id", 1], ["country", "United States"], ["created_at", "2014-09-04 16:48:32.926017"], ["email_address", "john@doe.com"], ["first_name", "John"], ["id", 1], ["last_name", "Doe"], ["phone", "6615557897"], ["state", "CA"], ["updated_at", "2014-09-04 16:48:32.926017"], ["zip_code", "91351"]]
339382
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339383
+  (0.0ms) SAVEPOINT active_record_1
339384
+ SQL (0.1ms) INSERT INTO "deal_redemptions_redemptions" ("address1", "address2", "city", "comments", "company_id", "country", "created_at", "email_address", "first_name", "id", "last_name", "phone", "state", "updated_at", "zip_code") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "200 S Street Rd"], ["address2", ""], ["city", "Valencia"], ["comments", ""], ["company_id", 1], ["country", "United States"], ["created_at", "2014-09-04 16:48:32.928143"], ["email_address", "john@smith.com"], ["first_name", "John"], ["id", 2], ["last_name", "Smith"], ["phone", "6616005555"], ["state", "CA"], ["updated_at", "2014-09-04 16:48:32.928143"], ["zip_code", "91355"]]
339385
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339386
+  (0.0ms) SAVEPOINT active_record_1
339387
+ SQL (0.1ms) INSERT INTO "deal_redemptions_redemptions" ("address1", "address2", "city", "comments", "company_id", "country", "created_at", "email_address", "first_name", "id", "last_name", "phone", "state", "updated_at", "zip_code") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "3000 E Street Rd"], ["address2", ""], ["city", "Valencia"], ["comments", "Please redeem voucher."], ["company_id", 1], ["country", "United States"], ["created_at", "2014-09-04 16:48:32.929736"], ["email_address", "joan@smithson.com"], ["first_name", "Joan"], ["id", 3], ["last_name", "Smithson"], ["phone", "6618881111"], ["state", "CA"], ["updated_at", "2014-09-04 16:48:32.929736"], ["zip_code", "91355"]]
339388
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339389
+ Processing by DealRedemptions::Admin::RedemptionsController#index as HTML
339390
+ Parameters: {"search"=>"John Doe"}
339391
+ DealRedemptions::User Load (0.0ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
339392
+ DealRedemptions::Redemption Load (0.1ms) SELECT "deal_redemptions_redemptions"."id", "deal_redemptions_redemptions"."company_id", "deal_redemptions_redemptions"."first_name", "deal_redemptions_redemptions"."last_name", "deal_redemptions_redemptions"."email_address", "deal_redemptions_redemptions"."created_at" FROM "deal_redemptions_redemptions" INNER JOIN "deal_redemptions_companies" ON "deal_redemptions_redemptions"."company_id" = "deal_redemptions_companies"."id" WHERE ("deal_redemptions_redemptions"."first_name" LIKE '%John%' OR "deal_redemptions_redemptions"."last_name" LIKE '%John%') AND ("deal_redemptions_redemptions"."first_name" LIKE '%Doe%' OR "deal_redemptions_redemptions"."last_name" LIKE '%Doe%')
339393
+ Completed 200 OK in 43ms (Views: 41.0ms | ActiveRecord: 0.2ms)
339394
+  (0.5ms) rollback transaction
339395
+  (0.0ms) begin transaction
339396
+  (0.0ms) commit transaction
339397
+  (0.0ms) begin transaction
339398
+  (0.0ms) SAVEPOINT active_record_1
339399
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
339400
+ Binary data inserted for `string` type on column `password_hash`
339401
+ Binary data inserted for `string` type on column `password_salt`
339402
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:33.044238"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:33.044081"], ["last_name", "Doe"], ["password_hash", "$2a$10$/zUtcfLc5U3d/PyHKwO3/.f3ERJxl15ouA7y7MgtIV5DGDq0JtVOu"], ["password_salt", "$2a$10$/zUtcfLc5U3d/PyHKwO3/."], ["updated_at", "2014-09-04 16:48:33.044238"]]
339403
+
339404
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.4ms
339405
+
339406
+ Sent mail to johndoe@gmail.com (4.4ms)
339407
+ Date: Thu, 04 Sep 2014 09:48:33 -0700
339408
+ From: noreply@domain.com
339409
+ To: johndoe@gmail.com
339410
+ Message-ID: <540897e1c63d_15b443fecad85a6e02054a@Allans-MacBook-Pro.local.mail>
339411
+ Subject: New User Confirmation
339412
+ Mime-Version: 1.0
339413
+ Content-Type: text/html;
339414
+ charset=UTF-8
339415
+ Content-Transfer-Encoding: 7bit
339416
+
339417
+ Hi John Doe,
339418
+
339419
+ Below are your login credentials:
339420
+
339421
+ Email: johndoe@gmail.com
339422
+ Password: test123
339423
+
339424
+ Note: If this is not John Doe, please disregard this email.
339425
+  (0.1ms) RELEASE SAVEPOINT active_record_1
339426
+  (0.0ms) SAVEPOINT active_record_1
339427
+ SQL (0.3ms) INSERT INTO "deal_redemptions_redemptions" ("address1", "address2", "city", "comments", "company_id", "country", "created_at", "email_address", "first_name", "id", "last_name", "phone", "state", "updated_at", "zip_code") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 N Street Rd"], ["address2", ""], ["city", "Valencia"], ["comments", "Comments going here."], ["company_id", 1], ["country", "United States"], ["created_at", "2014-09-04 16:48:33.055677"], ["email_address", "john@doe.com"], ["first_name", "John"], ["id", 1], ["last_name", "Doe"], ["phone", "6615557897"], ["state", "CA"], ["updated_at", "2014-09-04 16:48:33.055677"], ["zip_code", "91351"]]
339428
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339429
+  (0.0ms) SAVEPOINT active_record_1
339430
+ SQL (0.1ms) INSERT INTO "deal_redemptions_redemptions" ("address1", "address2", "city", "comments", "company_id", "country", "created_at", "email_address", "first_name", "id", "last_name", "phone", "state", "updated_at", "zip_code") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "200 S Street Rd"], ["address2", ""], ["city", "Valencia"], ["comments", ""], ["company_id", 1], ["country", "United States"], ["created_at", "2014-09-04 16:48:33.057434"], ["email_address", "john@smith.com"], ["first_name", "John"], ["id", 2], ["last_name", "Smith"], ["phone", "6616005555"], ["state", "CA"], ["updated_at", "2014-09-04 16:48:33.057434"], ["zip_code", "91355"]]
339431
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339432
+  (0.0ms) SAVEPOINT active_record_1
339433
+ SQL (0.1ms) INSERT INTO "deal_redemptions_redemptions" ("address1", "address2", "city", "comments", "company_id", "country", "created_at", "email_address", "first_name", "id", "last_name", "phone", "state", "updated_at", "zip_code") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "3000 E Street Rd"], ["address2", ""], ["city", "Valencia"], ["comments", "Please redeem voucher."], ["company_id", 1], ["country", "United States"], ["created_at", "2014-09-04 16:48:33.058728"], ["email_address", "joan@smithson.com"], ["first_name", "Joan"], ["id", 3], ["last_name", "Smithson"], ["phone", "6618881111"], ["state", "CA"], ["updated_at", "2014-09-04 16:48:33.058728"], ["zip_code", "91355"]]
339434
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339435
+ Processing by DealRedemptions::Admin::RedemptionsController#index as HTML
339436
+ Parameters: {"search"=>"John Doe"}
339437
+ DealRedemptions::User Load (0.0ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
339438
+ DealRedemptions::Redemption Load (0.1ms) SELECT "deal_redemptions_redemptions"."id", "deal_redemptions_redemptions"."company_id", "deal_redemptions_redemptions"."first_name", "deal_redemptions_redemptions"."last_name", "deal_redemptions_redemptions"."email_address", "deal_redemptions_redemptions"."created_at" FROM "deal_redemptions_redemptions" INNER JOIN "deal_redemptions_companies" ON "deal_redemptions_redemptions"."company_id" = "deal_redemptions_companies"."id" WHERE ("deal_redemptions_redemptions"."first_name" LIKE '%John%' OR "deal_redemptions_redemptions"."last_name" LIKE '%John%') AND ("deal_redemptions_redemptions"."first_name" LIKE '%Doe%' OR "deal_redemptions_redemptions"."last_name" LIKE '%Doe%')
339439
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
339440
+  (0.5ms) rollback transaction
339441
+  (0.0ms) begin transaction
339442
+  (0.0ms) commit transaction
339443
+  (0.0ms) begin transaction
339444
+  (0.0ms) SAVEPOINT active_record_1
339445
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
339446
+ Binary data inserted for `string` type on column `password_hash`
339447
+ Binary data inserted for `string` type on column `password_salt`
339448
+ SQL (0.2ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:33.131118"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:33.130941"], ["last_name", "Doe"], ["password_hash", "$2a$10$u3cPgteyeS.r5ZIAuerdluz9w5kw4yP7ZbQa4BsKNx2ePImko/Fni"], ["password_salt", "$2a$10$u3cPgteyeS.r5ZIAuerdlu"], ["updated_at", "2014-09-04 16:48:33.131118"]]
339449
+
339450
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.4ms
339451
+
339452
+ Sent mail to johndoe@gmail.com (4.3ms)
339453
+ Date: Thu, 04 Sep 2014 09:48:33 -0700
339454
+ From: noreply@domain.com
339455
+ To: johndoe@gmail.com
339456
+ Message-ID: <540897e121980_15b443fecad85a6e0206a4@Allans-MacBook-Pro.local.mail>
339457
+ Subject: New User Confirmation
339458
+ Mime-Version: 1.0
339459
+ Content-Type: text/html;
339460
+ charset=UTF-8
339461
+ Content-Transfer-Encoding: 7bit
339462
+
339463
+ Hi John Doe,
339464
+
339465
+ Below are your login credentials:
339466
+
339467
+ Email: johndoe@gmail.com
339468
+ Password: test123
339469
+
339470
+ Note: If this is not John Doe, please disregard this email.
339471
+  (0.1ms) RELEASE SAVEPOINT active_record_1
339472
+  (0.0ms) SAVEPOINT active_record_1
339473
+ SQL (0.3ms) INSERT INTO "deal_redemptions_redemptions" ("address1", "address2", "city", "comments", "company_id", "country", "created_at", "email_address", "first_name", "id", "last_name", "phone", "state", "updated_at", "zip_code") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 N Street Rd"], ["address2", ""], ["city", "Valencia"], ["comments", "Comments going here."], ["company_id", 1], ["country", "United States"], ["created_at", "2014-09-04 16:48:33.142488"], ["email_address", "john@doe.com"], ["first_name", "John"], ["id", 1], ["last_name", "Doe"], ["phone", "6615557897"], ["state", "CA"], ["updated_at", "2014-09-04 16:48:33.142488"], ["zip_code", "91351"]]
339474
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339475
+  (0.0ms) SAVEPOINT active_record_1
339476
+ SQL (0.1ms) INSERT INTO "deal_redemptions_redemptions" ("address1", "address2", "city", "comments", "company_id", "country", "created_at", "email_address", "first_name", "id", "last_name", "phone", "state", "updated_at", "zip_code") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "200 S Street Rd"], ["address2", ""], ["city", "Valencia"], ["comments", ""], ["company_id", 1], ["country", "United States"], ["created_at", "2014-09-04 16:48:33.144272"], ["email_address", "john@smith.com"], ["first_name", "John"], ["id", 2], ["last_name", "Smith"], ["phone", "6616005555"], ["state", "CA"], ["updated_at", "2014-09-04 16:48:33.144272"], ["zip_code", "91355"]]
339477
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339478
+  (0.0ms) SAVEPOINT active_record_1
339479
+ SQL (0.1ms) INSERT INTO "deal_redemptions_redemptions" ("address1", "address2", "city", "comments", "company_id", "country", "created_at", "email_address", "first_name", "id", "last_name", "phone", "state", "updated_at", "zip_code") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "3000 E Street Rd"], ["address2", ""], ["city", "Valencia"], ["comments", "Please redeem voucher."], ["company_id", 1], ["country", "United States"], ["created_at", "2014-09-04 16:48:33.145565"], ["email_address", "joan@smithson.com"], ["first_name", "Joan"], ["id", 3], ["last_name", "Smithson"], ["phone", "6618881111"], ["state", "CA"], ["updated_at", "2014-09-04 16:48:33.145565"], ["zip_code", "91355"]]
339480
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339481
+ Processing by DealRedemptions::Admin::RedemptionsController#index as HTML
339482
+ DealRedemptions::User Load (0.0ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
339483
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms)
339484
+  (0.4ms) rollback transaction
339485
+  (0.0ms) begin transaction
339486
+  (0.0ms) commit transaction
339487
+  (0.0ms) begin transaction
339488
+ Processing by DealRedemptions::Admin::ProductsController#create as HTML
339489
+ Parameters: {"product"=>{"id"=>"1", "name"=>"", "url"=>"http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"}}
339490
+ Unpermitted parameters: id
339491
+  (0.0ms) SAVEPOINT active_record_1
339492
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
339493
+ Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.1ms)
339494
+  (0.1ms) rollback transaction
339495
+  (0.0ms) begin transaction
339496
+  (0.0ms) commit transaction
339497
+  (0.0ms) begin transaction
339498
+ Processing by DealRedemptions::Admin::ProductsController#create as HTML
339499
+ Parameters: {"product"=>{"id"=>"1", "name"=>"", "url"=>"http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"}}
339500
+ Unpermitted parameters: id
339501
+  (0.1ms) SAVEPOINT active_record_1
339502
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
339503
+ Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.1ms)
339504
+  (0.1ms) rollback transaction
339505
+  (0.0ms) begin transaction
339506
+  (0.0ms) commit transaction
339507
+  (0.0ms) begin transaction
339508
+ Processing by DealRedemptions::Admin::ProductsController#create as HTML
339509
+ Parameters: {"product"=>{"id"=>"1", "name"=>"Smile Sciences Teeth Whitening Pen", "url"=>"http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"}}
339510
+ Unpermitted parameters: id
339511
+  (0.0ms) SAVEPOINT active_record_1
339512
+ SQL (0.3ms) INSERT INTO "deal_redemptions_products" ("created_at", "name", "updated_at", "url") VALUES (?, ?, ?, ?) [["created_at", "2014-09-04 16:48:33.170315"], ["name", "Smile Sciences Teeth Whitening Pen"], ["updated_at", "2014-09-04 16:48:33.170315"], ["url", "http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"]]
339513
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339514
+ Redirected to http://test.host/deal_redemptions/admin/products
339515
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
339516
+  (0.3ms) rollback transaction
339517
+  (0.0ms) begin transaction
339518
+  (0.0ms) commit transaction
339519
+  (0.0ms) begin transaction
339520
+ Processing by DealRedemptions::Admin::ProductsController#create as HTML
339521
+ Parameters: {"product"=>{"id"=>"1", "name"=>"Smile Sciences Teeth Whitening Pen", "url"=>"http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"}}
339522
+ Unpermitted parameters: id
339523
+  (0.0ms) SAVEPOINT active_record_1
339524
+ SQL (0.2ms) INSERT INTO "deal_redemptions_products" ("created_at", "name", "updated_at", "url") VALUES (?, ?, ?, ?) [["created_at", "2014-09-04 16:48:33.175851"], ["name", "Smile Sciences Teeth Whitening Pen"], ["updated_at", "2014-09-04 16:48:33.175851"], ["url", "http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"]]
339525
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339526
+ Redirected to http://test.host/deal_redemptions/admin/products
339527
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
339528
+  (0.3ms) rollback transaction
339529
+  (0.0ms) begin transaction
339530
+  (0.0ms) commit transaction
339531
+  (0.0ms) begin transaction
339532
+  (0.1ms) SELECT COUNT(*) FROM "deal_redemptions_products"
339533
+ Processing by DealRedemptions::Admin::ProductsController#create as HTML
339534
+ Parameters: {"product"=>{"id"=>"1", "name"=>"Smile Sciences Teeth Whitening Pen", "url"=>"http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"}}
339535
+ Unpermitted parameters: id
339536
+  (0.0ms) SAVEPOINT active_record_1
339537
+ SQL (0.2ms) INSERT INTO "deal_redemptions_products" ("created_at", "name", "updated_at", "url") VALUES (?, ?, ?, ?) [["created_at", "2014-09-04 16:48:33.183898"], ["name", "Smile Sciences Teeth Whitening Pen"], ["updated_at", "2014-09-04 16:48:33.183898"], ["url", "http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"]]
339538
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339539
+ Redirected to http://test.host/deal_redemptions/admin/products
339540
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
339541
+  (0.1ms) SELECT COUNT(*) FROM "deal_redemptions_products"
339542
+  (0.5ms) rollback transaction
339543
+  (0.1ms) begin transaction
339544
+  (0.0ms) commit transaction
339545
+  (0.0ms) begin transaction
339546
+ Processing by DealRedemptions::Admin::ProductsController#new as HTML
339547
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
339548
+  (0.1ms) rollback transaction
339549
+  (0.0ms) begin transaction
339550
+  (0.0ms) commit transaction
339551
+  (0.0ms) begin transaction
339552
+  (0.0ms) SAVEPOINT active_record_1
339553
+ SQL (0.3ms) INSERT INTO "deal_redemptions_products" ("created_at", "id", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:33.193987"], ["id", 1], ["name", "Smile Sciences Teeth Whitening Pen"], ["updated_at", "2014-09-04 16:48:33.193987"], ["url", "http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"]]
339554
+  (0.1ms) RELEASE SAVEPOINT active_record_1
339555
+ Processing by DealRedemptions::Admin::ProductsController#destroy as HTML
339556
+ Parameters: {"id"=>"1"}
339557
+ DealRedemptions::Product Load (0.1ms) SELECT "deal_redemptions_products".* FROM "deal_redemptions_products" WHERE "deal_redemptions_products"."id" = ? LIMIT 1 [["id", 1]]
339558
+  (0.0ms) SAVEPOINT active_record_1
339559
+ SQL (0.3ms) DELETE FROM "deal_redemptions_products" WHERE "deal_redemptions_products"."id" = ? [["id", 1]]
339560
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339561
+ Redirected to http://test.host/deal_redemptions/admin/products
339562
+ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
339563
+  (0.3ms) rollback transaction
339564
+  (0.0ms) begin transaction
339565
+  (0.0ms) commit transaction
339566
+  (0.0ms) begin transaction
339567
+  (0.0ms) SAVEPOINT active_record_1
339568
+ SQL (0.3ms) INSERT INTO "deal_redemptions_products" ("created_at", "id", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:33.201501"], ["id", 1], ["name", "Smile Sciences Teeth Whitening Pen"], ["updated_at", "2014-09-04 16:48:33.201501"], ["url", "http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"]]
339569
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339570
+  (0.1ms) SELECT COUNT(*) FROM "deal_redemptions_products"
339571
+ Processing by DealRedemptions::Admin::ProductsController#destroy as HTML
339572
+ Parameters: {"id"=>"1"}
339573
+ DealRedemptions::Product Load (0.0ms) SELECT "deal_redemptions_products".* FROM "deal_redemptions_products" WHERE "deal_redemptions_products"."id" = ? LIMIT 1 [["id", 1]]
339574
+  (0.0ms) SAVEPOINT active_record_1
339575
+ SQL (0.2ms) DELETE FROM "deal_redemptions_products" WHERE "deal_redemptions_products"."id" = ? [["id", 1]]
339576
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339577
+ Redirected to http://test.host/deal_redemptions/admin/products
339578
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
339579
+  (0.0ms) SELECT COUNT(*) FROM "deal_redemptions_products"
339580
+  (0.4ms) rollback transaction
339581
+  (0.0ms) begin transaction
339582
+  (0.0ms) commit transaction
339583
+  (0.0ms) begin transaction
339584
+  (0.0ms) SAVEPOINT active_record_1
339585
+ SQL (0.2ms) INSERT INTO "deal_redemptions_products" ("created_at", "id", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:33.209145"], ["id", 1], ["name", "Smile Sciences Teeth Whitening Pen"], ["updated_at", "2014-09-04 16:48:33.209145"], ["url", "http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"]]
339586
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339587
+ Processing by DealRedemptions::Admin::ProductsController#edit as HTML
339588
+ Parameters: {"id"=>"1"}
339589
+ DealRedemptions::Product Load (0.0ms) SELECT "deal_redemptions_products".* FROM "deal_redemptions_products" WHERE "deal_redemptions_products"."id" = ? LIMIT 1 [["id", 1]]
339590
+ Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
339591
+  (0.3ms) rollback transaction
339592
+  (0.0ms) begin transaction
339593
+  (0.0ms) commit transaction
339594
+  (0.0ms) begin transaction
339595
+  (0.0ms) SAVEPOINT active_record_1
339596
+ SQL (0.2ms) INSERT INTO "deal_redemptions_products" ("created_at", "id", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:33.216481"], ["id", 1], ["name", "Smile Sciences Teeth Whitening Pen"], ["updated_at", "2014-09-04 16:48:33.216481"], ["url", "http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"]]
339597
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339598
+ Processing by DealRedemptions::Admin::ProductsController#index as HTML
339599
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
339600
+ DealRedemptions::Product Load (0.1ms) SELECT "deal_redemptions_products".* FROM "deal_redemptions_products" LIMIT 25 OFFSET 0
339601
+  (0.3ms) rollback transaction
339602
+  (0.0ms) begin transaction
339603
+  (0.0ms) commit transaction
339604
+  (0.0ms) begin transaction
339605
+  (0.0ms) SAVEPOINT active_record_1
339606
+ SQL (0.2ms) INSERT INTO "deal_redemptions_products" ("created_at", "id", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:33.224440"], ["id", 1], ["name", "Smile Sciences Teeth Whitening Pen"], ["updated_at", "2014-09-04 16:48:33.224440"], ["url", "http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"]]
339607
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339608
+ Processing by DealRedemptions::Admin::ProductsController#update as HTML
339609
+ Parameters: {"product"=>{"id"=>"1", "name"=>"", "url"=>"http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"}, "id"=>"1"}
339610
+ DealRedemptions::Product Load (0.0ms) SELECT "deal_redemptions_products".* FROM "deal_redemptions_products" WHERE "deal_redemptions_products"."id" = ? LIMIT 1 [["id", 1]]
339611
+ Unpermitted parameters: id
339612
+  (0.0ms) SAVEPOINT active_record_1
339613
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
339614
+ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.1ms)
339615
+  (0.6ms) rollback transaction
339616
+  (0.1ms) begin transaction
339617
+  (0.0ms) commit transaction
339618
+  (0.0ms) begin transaction
339619
+  (0.1ms) SAVEPOINT active_record_1
339620
+ SQL (0.3ms) INSERT INTO "deal_redemptions_products" ("created_at", "id", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:33.234456"], ["id", 1], ["name", "Smile Sciences Teeth Whitening Pen"], ["updated_at", "2014-09-04 16:48:33.234456"], ["url", "http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"]]
339621
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339622
+ Processing by DealRedemptions::Admin::ProductsController#update as HTML
339623
+ Parameters: {"product"=>{"id"=>"1", "name"=>"", "url"=>"http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"}, "id"=>"1"}
339624
+ DealRedemptions::Product Load (0.1ms) SELECT "deal_redemptions_products".* FROM "deal_redemptions_products" WHERE "deal_redemptions_products"."id" = ? LIMIT 1 [["id", 1]]
339625
+ Unpermitted parameters: id
339626
+  (0.0ms) SAVEPOINT active_record_1
339627
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
339628
+ Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.1ms)
339629
+  (0.4ms) rollback transaction
339630
+  (0.1ms) begin transaction
339631
+  (0.0ms) commit transaction
339632
+  (0.0ms) begin transaction
339633
+  (0.0ms) SAVEPOINT active_record_1
339634
+ SQL (0.2ms) INSERT INTO "deal_redemptions_products" ("created_at", "id", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:33.243461"], ["id", 1], ["name", "Smile Sciences Teeth Whitening Pen"], ["updated_at", "2014-09-04 16:48:33.243461"], ["url", "http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"]]
339635
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339636
+ Processing by DealRedemptions::Admin::ProductsController#update as HTML
339637
+ Parameters: {"product"=>{"id"=>"1", "name"=>"Smile Sciences Teeth Whitening Pen", "url"=>"http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"}, "id"=>"1"}
339638
+ DealRedemptions::Product Load (0.0ms) SELECT "deal_redemptions_products".* FROM "deal_redemptions_products" WHERE "deal_redemptions_products"."id" = ? LIMIT 1 [["id", 1]]
339639
+ Unpermitted parameters: id
339640
+  (0.0ms) SAVEPOINT active_record_1
339641
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339642
+ Redirected to http://test.host/deal_redemptions/admin/products
339643
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
339644
+  (0.3ms) rollback transaction
339645
+  (0.0ms) begin transaction
339646
+  (0.0ms) commit transaction
339647
+  (0.0ms) begin transaction
339648
+  (0.0ms) SAVEPOINT active_record_1
339649
+ SQL (0.2ms) INSERT INTO "deal_redemptions_products" ("created_at", "id", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:33.250256"], ["id", 1], ["name", "Smile Sciences Teeth Whitening Pen"], ["updated_at", "2014-09-04 16:48:33.250256"], ["url", "http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"]]
339650
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339651
+ Processing by DealRedemptions::Admin::ProductsController#update as HTML
339652
+ Parameters: {"product"=>{"id"=>"1", "name"=>"Smile Sciences Teeth Whitening Pen", "url"=>"http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"}, "id"=>"1"}
339653
+ DealRedemptions::Product Load (0.0ms) SELECT "deal_redemptions_products".* FROM "deal_redemptions_products" WHERE "deal_redemptions_products"."id" = ? LIMIT 1 [["id", 1]]
339654
+ Unpermitted parameters: id
339655
+  (0.0ms) SAVEPOINT active_record_1
339656
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339657
+ Redirected to http://test.host/deal_redemptions/admin/products
339658
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
339659
+  (0.4ms) rollback transaction
339660
+  (0.0ms) begin transaction
339661
+  (0.0ms) commit transaction
339662
+  (0.0ms) begin transaction
339663
+  (0.1ms) SAVEPOINT active_record_1
339664
+ SQL (0.3ms) INSERT INTO "deal_redemptions_products" ("created_at", "id", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:33.288722"], ["id", 1], ["name", "Smile Sciences Teeth Whitening Pen"], ["updated_at", "2014-09-04 16:48:33.288722"], ["url", "http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"]]
339665
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339666
+ Processing by DealRedemptions::Admin::ProductsController#update as HTML
339667
+ Parameters: {"product"=>{"id"=>"1", "name"=>"Smile Sciences Teeth Whitening Pen", "url"=>"http://smilesciences.com/collections/products/products/smile-sciences-teeth-whitening-pen"}, "id"=>"1"}
339668
+ DealRedemptions::Product Load (0.0ms) SELECT "deal_redemptions_products".* FROM "deal_redemptions_products" WHERE "deal_redemptions_products"."id" = ? LIMIT 1 [["id", 1]]
339669
+ Unpermitted parameters: id
339670
+  (0.0ms) SAVEPOINT active_record_1
339671
+  (0.1ms) RELEASE SAVEPOINT active_record_1
339672
+ Redirected to http://test.host/deal_redemptions/admin/products
339673
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
339674
+ DealRedemptions::Product Load (0.1ms) SELECT "deal_redemptions_products".* FROM "deal_redemptions_products" WHERE "deal_redemptions_products"."id" = ? LIMIT 1 [["id", 1]]
339675
+  (0.4ms) rollback transaction
339676
+  (0.1ms) begin transaction
339677
+  (0.0ms) commit transaction
339678
+  (0.1ms) begin transaction
339679
+  (0.0ms) SAVEPOINT active_record_1
339680
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
339681
+ Binary data inserted for `string` type on column `password_hash`
339682
+ Binary data inserted for `string` type on column `password_salt`
339683
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:33.364105"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:33.363935"], ["last_name", "Doe"], ["password_hash", "$2a$10$7Kg82Iw4uuyZjvx6qeAafO57P9JnFtDM/1w1rgxjc2zVGu1M45n6W"], ["password_salt", "$2a$10$7Kg82Iw4uuyZjvx6qeAafO"], ["updated_at", "2014-09-04 16:48:33.364105"]]
339684
+
339685
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.8ms
339686
+
339687
+ Sent mail to johndoe@gmail.com (4.5ms)
339688
+ Date: Thu, 04 Sep 2014 09:48:33 -0700
339689
+ From: noreply@domain.com
339690
+ To: johndoe@gmail.com
339691
+ Message-ID: <540897e15a9d8_15b443fecad85a6e02078d@Allans-MacBook-Pro.local.mail>
339692
+ Subject: New User Confirmation
339693
+ Mime-Version: 1.0
339694
+ Content-Type: text/html;
339695
+ charset=UTF-8
339696
+ Content-Transfer-Encoding: 7bit
339697
+
339698
+ Hi John Doe,
339699
+
339700
+ Below are your login credentials:
339701
+
339702
+ Email: johndoe@gmail.com
339703
+ Password: test123
339704
+
339705
+ Note: If this is not John Doe, please disregard this email.
339706
+  (0.1ms) RELEASE SAVEPOINT active_record_1
339707
+  (0.6ms) rollback transaction
339708
+  (0.0ms) begin transaction
339709
+  (0.0ms) commit transaction
339710
+  (0.0ms) begin transaction
339711
+  (0.0ms) SAVEPOINT active_record_1
339712
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
339713
+ Binary data inserted for `string` type on column `password_hash`
339714
+ Binary data inserted for `string` type on column `password_salt`
339715
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:33.443023"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:33.442861"], ["last_name", "Doe"], ["password_hash", "$2a$10$CAkKAm0OsmvcuGyZ4qsLlee21uX6Dm9Q3YfQiZlqw/sFeltaoaag."], ["password_salt", "$2a$10$CAkKAm0OsmvcuGyZ4qsLle"], ["updated_at", "2014-09-04 16:48:33.443023"]]
339716
+
339717
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.7ms
339718
+
339719
+ Sent mail to johndoe@gmail.com (4.8ms)
339720
+ Date: Thu, 04 Sep 2014 09:48:33 -0700
339721
+ From: noreply@domain.com
339722
+ To: johndoe@gmail.com
339723
+ Message-ID: <540897e16ddd1_15b443fecad85a6e020855@Allans-MacBook-Pro.local.mail>
339724
+ Subject: New User Confirmation
339725
+ Mime-Version: 1.0
339726
+ Content-Type: text/html;
339727
+ charset=UTF-8
339728
+ Content-Transfer-Encoding: 7bit
339729
+
339730
+ Hi John Doe,
339731
+
339732
+ Below are your login credentials:
339733
+
339734
+ Email: johndoe@gmail.com
339735
+ Password: test123
339736
+
339737
+ Note: If this is not John Doe, please disregard this email.
339738
+  (0.1ms) RELEASE SAVEPOINT active_record_1
339739
+  (0.6ms) rollback transaction
339740
+  (0.1ms) begin transaction
339741
+  (0.1ms) commit transaction
339742
+  (0.0ms) begin transaction
339743
+  (0.1ms) SAVEPOINT active_record_1
339744
+ DealRedemptions::User Exists (0.2ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
339745
+ Binary data inserted for `string` type on column `password_hash`
339746
+ Binary data inserted for `string` type on column `password_salt`
339747
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:33.524672"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:33.524507"], ["last_name", "Doe"], ["password_hash", "$2a$10$d7IFk4Wyzjp9DkmS9XunZORrFf8qRjmIIgilJCZJm.qTnx0r/r6Nq"], ["password_salt", "$2a$10$d7IFk4Wyzjp9DkmS9XunZO"], ["updated_at", "2014-09-04 16:48:33.524672"]]
339748
+
339749
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.6ms
339750
+
339751
+ Sent mail to johndoe@gmail.com (5.1ms)
339752
+ Date: Thu, 04 Sep 2014 09:48:33 -0700
339753
+ From: noreply@domain.com
339754
+ To: johndoe@gmail.com
339755
+ Message-ID: <540897e181c2c_15b443fecad85a6e020914@Allans-MacBook-Pro.local.mail>
339756
+ Subject: New User Confirmation
339757
+ Mime-Version: 1.0
339758
+ Content-Type: text/html;
339759
+ charset=UTF-8
339760
+ Content-Transfer-Encoding: 7bit
339761
+
339762
+ Hi John Doe,
339763
+
339764
+ Below are your login credentials:
339765
+
339766
+ Email: johndoe@gmail.com
339767
+ Password: test123
339768
+
339769
+ Note: If this is not John Doe, please disregard this email.
339770
+  (0.1ms) RELEASE SAVEPOINT active_record_1
339771
+  (0.7ms) rollback transaction
339772
+  (0.1ms) begin transaction
339773
+  (0.0ms) commit transaction
339774
+  (0.0ms) begin transaction
339775
+ DealRedemptions::User Exists (0.2ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" IS NULL LIMIT 1
339776
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" IS NULL LIMIT 1
339777
+  (0.1ms) rollback transaction
339778
+  (0.0ms) begin transaction
339779
+  (0.0ms) commit transaction
339780
+  (0.0ms) begin transaction
339781
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" IS NULL LIMIT 1
339782
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" IS NULL LIMIT 1
339783
+  (0.1ms) rollback transaction
339784
+  (0.1ms) begin transaction
339785
+  (0.0ms) commit transaction
339786
+  (0.0ms) begin transaction
339787
+  (0.0ms) SAVEPOINT active_record_1
339788
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = '' LIMIT 1
339789
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
339790
+  (0.0ms) rollback transaction
339791
+  (0.0ms) begin transaction
339792
+  (0.0ms) commit transaction
339793
+  (0.0ms) begin transaction
339794
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" IS NULL LIMIT 1
339795
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" IS NULL LIMIT 1
339796
+  (0.1ms) rollback transaction
339797
+  (0.1ms) begin transaction
339798
+  (0.1ms) commit transaction
339799
+  (0.1ms) begin transaction
339800
+ DealRedemptions::User Exists (0.2ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" IS NULL LIMIT 1
339801
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" IS NULL LIMIT 1
339802
+  (0.1ms) rollback transaction
339803
+  (0.0ms) begin transaction
339804
+  (0.0ms) commit transaction
339805
+  (0.0ms) begin transaction
339806
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" ORDER BY "deal_redemptions_users"."id" ASC LIMIT 1
339807
+  (0.0ms) SAVEPOINT active_record_1
339808
+ SQL (0.2ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:33.587693"], ["email", "0"], ["first_name", "0"], ["last_login", "2014-09-04 16:48:33.587586"], ["last_name", "0"], ["password_hash", "0"], ["password_salt", "0"], ["updated_at", "2014-09-04 16:48:33.587693"]]
339809
+
339810
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.1ms
339811
+
339812
+ Sent mail to 0 (3.9ms)
339813
+ Date: Thu, 04 Sep 2014 09:48:33 -0700
339814
+ From: noreply@domain.com
339815
+ To: 0
339816
+ Message-ID: <540897e190f75_15b443fecad85a6e02104d@Allans-MacBook-Pro.local.mail>
339817
+ Subject: New User Confirmation
339818
+ Mime-Version: 1.0
339819
+ Content-Type: text/html;
339820
+ charset=UTF-8
339821
+ Content-Transfer-Encoding: 7bit
339822
+
339823
+ Hi 0 0,
339824
+
339825
+ Below are your login credentials:
339826
+
339827
+ Email: 0
339828
+ Password:
339829
+
339830
+ Note: If this is not 0 0, please disregard this email.
339831
+  (0.1ms) RELEASE SAVEPOINT active_record_1
339832
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = '0' LIMIT 1
339833
+ DealRedemptions::User Exists (0.0ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = '0' LIMIT 1
339834
+  (1.7ms) rollback transaction
339835
+  (0.1ms) begin transaction
339836
+  (0.0ms) commit transaction
339837
+  (0.0ms) begin transaction
339838
+  (0.1ms) SAVEPOINT active_record_1
339839
+ DealRedemptions::User Exists (0.2ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'testemail1@gmail.com' LIMIT 1
339840
+ Binary data inserted for `string` type on column `password_hash`
339841
+ Binary data inserted for `string` type on column `password_salt`
339842
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:33.716482"], ["email", "testemail1@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:33.716321"], ["last_name", "Doe"], ["password_hash", "$2a$10$m7zOouIgM8oUylCbYBjQp.jdAzqbEqDloS3KTGYQ9Iu1gcMIY8Fem"], ["password_salt", "$2a$10$m7zOouIgM8oUylCbYBjQp."], ["updated_at", "2014-09-04 16:48:33.716482"]]
339843
+
339844
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.6ms
339845
+
339846
+ Sent mail to testemail1@gmail.com (4.4ms)
339847
+ Date: Thu, 04 Sep 2014 09:48:33 -0700
339848
+ From: noreply@domain.com
339849
+ To: testemail1@gmail.com
339850
+ Message-ID: <540897e1b0928_15b443fecad85a6e0211f0@Allans-MacBook-Pro.local.mail>
339851
+ Subject: New User Confirmation
339852
+ Mime-Version: 1.0
339853
+ Content-Type: text/html;
339854
+ charset=UTF-8
339855
+ Content-Transfer-Encoding: 7bit
339856
+
339857
+ Hi John Doe,
339858
+
339859
+ Below are your login credentials:
339860
+
339861
+ Email: testemail1@gmail.com
339862
+ Password: test123
339863
+
339864
+ Note: If this is not John Doe, please disregard this email.
339865
+  (0.1ms) RELEASE SAVEPOINT active_record_1
339866
+ Processing by DealRedemptions::Admin::UserController#destroy as HTML
339867
+ Parameters: {"id"=>"1"}
339868
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
339869
+ DealRedemptions::User Load (0.0ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
339870
+  (0.0ms) SAVEPOINT active_record_1
339871
+ SQL (0.2ms) DELETE FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? [["id", 1]]
339872
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339873
+ Redirected to http://test.host/deal_redemptions/admin/settings
339874
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
339875
+  (0.7ms) rollback transaction
339876
+  (0.0ms) begin transaction
339877
+  (0.0ms) commit transaction
339878
+  (0.0ms) begin transaction
339879
+  (0.0ms) SAVEPOINT active_record_1
339880
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'testemail2@gmail.com' LIMIT 1
339881
+ Binary data inserted for `string` type on column `password_hash`
339882
+ Binary data inserted for `string` type on column `password_salt`
339883
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:33.802761"], ["email", "testemail2@gmail.com"], ["first_name", "John"], ["id", 2], ["last_login", "2014-09-04 16:48:33.802566"], ["last_name", "Doe"], ["password_hash", "$2a$10$LtgkV0sMLhyL4TGNbCu6te99xcAIue4pbX1hJFyOj9gB5N230IQhi"], ["password_salt", "$2a$10$LtgkV0sMLhyL4TGNbCu6te"], ["updated_at", "2014-09-04 16:48:33.802761"]]
339884
+
339885
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.6ms
339886
+
339887
+ Sent mail to testemail2@gmail.com (4.2ms)
339888
+ Date: Thu, 04 Sep 2014 09:48:33 -0700
339889
+ From: noreply@domain.com
339890
+ To: testemail2@gmail.com
339891
+ Message-ID: <540897e1c5a99_15b443fecad85a6e0212c2@Allans-MacBook-Pro.local.mail>
339892
+ Subject: New User Confirmation
339893
+ Mime-Version: 1.0
339894
+ Content-Type: text/html;
339895
+ charset=UTF-8
339896
+ Content-Transfer-Encoding: 7bit
339897
+
339898
+ Hi John Doe,
339899
+
339900
+ Below are your login credentials:
339901
+
339902
+ Email: testemail2@gmail.com
339903
+ Password: test123
339904
+
339905
+ Note: If this is not John Doe, please disregard this email.
339906
+  (0.1ms) RELEASE SAVEPOINT active_record_1
339907
+ Processing by DealRedemptions::Admin::UserController#destroy as HTML
339908
+ Parameters: {"id"=>"2"}
339909
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 2]]
339910
+ DealRedemptions::User Load (0.0ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 2]]
339911
+  (0.1ms) SAVEPOINT active_record_1
339912
+ SQL (0.3ms) DELETE FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? [["id", 2]]
339913
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339914
+ Redirected to http://test.host/deal_redemptions/admin/settings
339915
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
339916
+  (0.7ms) rollback transaction
339917
+  (0.1ms) begin transaction
339918
+  (0.0ms) commit transaction
339919
+  (0.0ms) begin transaction
339920
+  (0.1ms) SAVEPOINT active_record_1
339921
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'testemail3@gmail.com' LIMIT 1
339922
+ Binary data inserted for `string` type on column `password_hash`
339923
+ Binary data inserted for `string` type on column `password_salt`
339924
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:33.889665"], ["email", "testemail3@gmail.com"], ["first_name", "John"], ["id", 3], ["last_login", "2014-09-04 16:48:33.889506"], ["last_name", "Doe"], ["password_hash", "$2a$10$lEEJCcr.s5KPIYvBaNrR4.XbzumsMNJistXDhfkyVq8NZjr5Zr/M2"], ["password_salt", "$2a$10$lEEJCcr.s5KPIYvBaNrR4."], ["updated_at", "2014-09-04 16:48:33.889665"]]
339925
+
339926
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.4ms
339927
+
339928
+ Sent mail to testemail3@gmail.com (4.4ms)
339929
+ Date: Thu, 04 Sep 2014 09:48:33 -0700
339930
+ From: noreply@domain.com
339931
+ To: testemail3@gmail.com
339932
+ Message-ID: <540897e1dac79_15b443fecad85a6e021396@Allans-MacBook-Pro.local.mail>
339933
+ Subject: New User Confirmation
339934
+ Mime-Version: 1.0
339935
+ Content-Type: text/html;
339936
+ charset=UTF-8
339937
+ Content-Transfer-Encoding: 7bit
339938
+
339939
+ Hi John Doe,
339940
+
339941
+ Below are your login credentials:
339942
+
339943
+ Email: testemail3@gmail.com
339944
+ Password: test123
339945
+
339946
+ Note: If this is not John Doe, please disregard this email.
339947
+  (0.1ms) RELEASE SAVEPOINT active_record_1
339948
+ Processing by DealRedemptions::Admin::UserController#create as HTML
339949
+ Parameters: {"user"=>{"id"=>"4", "first_name"=>"John", "last_name"=>"Doe", "email"=>"", "password"=>"[FILTERED]"}}
339950
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 3]]
339951
+ Unpermitted parameters: id
339952
+  (0.0ms) SAVEPOINT active_record_1
339953
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = '' LIMIT 1
339954
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
339955
+ Redirected to http://test.host/deal_redemptions/admin/settings
339956
+ Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
339957
+  (0.7ms) rollback transaction
339958
+  (0.0ms) begin transaction
339959
+  (0.0ms) commit transaction
339960
+  (0.0ms) begin transaction
339961
+  (0.0ms) SAVEPOINT active_record_1
339962
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'testemail4@gmail.com' LIMIT 1
339963
+ Binary data inserted for `string` type on column `password_hash`
339964
+ Binary data inserted for `string` type on column `password_salt`
339965
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:33.973399"], ["email", "testemail4@gmail.com"], ["first_name", "John"], ["id", 5], ["last_login", "2014-09-04 16:48:33.973249"], ["last_name", "Doe"], ["password_hash", "$2a$10$yar1fB4yt8eiiZYSayVL0Oa46yWJqflWqwRSL3mXJlrOm0pE3Ew/C"], ["password_salt", "$2a$10$yar1fB4yt8eiiZYSayVL0O"], ["updated_at", "2014-09-04 16:48:33.973399"]]
339966
+
339967
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.2ms
339968
+
339969
+ Sent mail to testemail4@gmail.com (4.4ms)
339970
+ Date: Thu, 04 Sep 2014 09:48:33 -0700
339971
+ From: noreply@domain.com
339972
+ To: testemail4@gmail.com
339973
+ Message-ID: <540897e1ef2b4_15b443fecad85a6e021422@Allans-MacBook-Pro.local.mail>
339974
+ Subject: New User Confirmation
339975
+ Mime-Version: 1.0
339976
+ Content-Type: text/html;
339977
+ charset=UTF-8
339978
+ Content-Transfer-Encoding: 7bit
339979
+
339980
+ Hi John Doe,
339981
+
339982
+ Below are your login credentials:
339983
+
339984
+ Email: testemail4@gmail.com
339985
+ Password: test123
339986
+
339987
+ Note: If this is not John Doe, please disregard this email.
339988
+  (0.1ms) RELEASE SAVEPOINT active_record_1
339989
+ Processing by DealRedemptions::Admin::UserController#create as HTML
339990
+ Parameters: {"user"=>{"id"=>"6", "first_name"=>"John", "last_name"=>"Doe", "email"=>"", "password"=>"[FILTERED]"}}
339991
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 5]]
339992
+ Unpermitted parameters: id
339993
+  (0.1ms) SAVEPOINT active_record_1
339994
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = '' LIMIT 1
339995
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
339996
+ Redirected to http://test.host/deal_redemptions/admin/settings
339997
+ Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
339998
+  (0.3ms) rollback transaction
339999
+  (0.0ms) begin transaction
340000
+  (0.0ms) commit transaction
340001
+  (0.0ms) begin transaction
340002
+  (0.0ms) SAVEPOINT active_record_1
340003
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'testemail5@gmail.com' LIMIT 1
340004
+ Binary data inserted for `string` type on column `password_hash`
340005
+ Binary data inserted for `string` type on column `password_salt`
340006
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:34.057142"], ["email", "testemail5@gmail.com"], ["first_name", "John"], ["id", 7], ["last_login", "2014-09-04 16:48:34.056993"], ["last_name", "Doe"], ["password_hash", "$2a$10$GqXM1FM5.eNRdoKJkTgfIulAxhX1xzrNhSLczb5iAauB5..9IQ65u"], ["password_salt", "$2a$10$GqXM1FM5.eNRdoKJkTgfIu"], ["updated_at", "2014-09-04 16:48:34.057142"]]
340007
+
340008
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.2ms
340009
+
340010
+ Sent mail to testemail5@gmail.com (4.4ms)
340011
+ Date: Thu, 04 Sep 2014 09:48:34 -0700
340012
+ From: noreply@domain.com
340013
+ To: testemail5@gmail.com
340014
+ Message-ID: <540897e2f776_15b443fecad85a6e021550@Allans-MacBook-Pro.local.mail>
340015
+ Subject: New User Confirmation
340016
+ Mime-Version: 1.0
340017
+ Content-Type: text/html;
340018
+ charset=UTF-8
340019
+ Content-Transfer-Encoding: 7bit
340020
+
340021
+ Hi John Doe,
340022
+
340023
+ Below are your login credentials:
340024
+
340025
+ Email: testemail5@gmail.com
340026
+ Password: test123
340027
+
340028
+ Note: If this is not John Doe, please disregard this email.
340029
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340030
+ Processing by DealRedemptions::Admin::UserController#create as HTML
340031
+ Parameters: {"user"=>{"id"=>"8", "first_name"=>"John", "last_name"=>"Doe", "email"=>"testemail6@gmail.com", "password"=>"[FILTERED]"}}
340032
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 7]]
340033
+ Unpermitted parameters: id
340034
+  (0.1ms) SAVEPOINT active_record_1
340035
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'testemail6@gmail.com' LIMIT 1
340036
+ Binary data inserted for `string` type on column `password_hash`
340037
+ Binary data inserted for `string` type on column `password_salt`
340038
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:34.141920"], ["email", "testemail6@gmail.com"], ["first_name", "John"], ["last_login", "2014-09-04 16:48:34.141764"], ["last_name", "Doe"], ["password_hash", "$2a$10$oGui6EMc7CIi1e0WD9sKHeHLJwiZ45gYODl2uR7KBzKk63s4VF6ti"], ["password_salt", "$2a$10$oGui6EMc7CIi1e0WD9sKHe"], ["updated_at", "2014-09-04 16:48:34.141920"]]
340039
+
340040
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.2ms
340041
+
340042
+ Sent mail to testemail6@gmail.com (35.8ms)
340043
+ Date: Thu, 04 Sep 2014 09:48:34 -0700
340044
+ From: noreply@domain.com
340045
+ To: testemail6@gmail.com
340046
+ Message-ID: <540897e2242fc_15b443fecad85a6e02166b@Allans-MacBook-Pro.local.mail>
340047
+ Subject: New User Confirmation
340048
+ Mime-Version: 1.0
340049
+ Content-Type: text/html;
340050
+ charset=UTF-8
340051
+ Content-Transfer-Encoding: 7bit
340052
+
340053
+ Hi John Doe,
340054
+
340055
+ Below are your login credentials:
340056
+
340057
+ Email: testemail6@gmail.com
340058
+ Password: test123
340059
+
340060
+ Note: If this is not John Doe, please disregard this email.
340061
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340062
+ Redirected to http://test.host/deal_redemptions/admin/settings
340063
+ Completed 302 Found in 115ms (ActiveRecord: 0.6ms)
340064
+  (0.5ms) rollback transaction
340065
+  (0.1ms) begin transaction
340066
+  (0.0ms) commit transaction
340067
+  (0.0ms) begin transaction
340068
+  (0.1ms) SAVEPOINT active_record_1
340069
+ DealRedemptions::User Exists (0.2ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'testemail7@gmail.com' LIMIT 1
340070
+ Binary data inserted for `string` type on column `password_hash`
340071
+ Binary data inserted for `string` type on column `password_salt`
340072
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:34.255229"], ["email", "testemail7@gmail.com"], ["first_name", "John"], ["id", 9], ["last_login", "2014-09-04 16:48:34.255061"], ["last_name", "Doe"], ["password_hash", "$2a$10$iuT7a6TScIeLK5HIHyiaxOM19zdFLK0UxSq.8A6CyrhSaifT.z9oi"], ["password_salt", "$2a$10$iuT7a6TScIeLK5HIHyiaxO"], ["updated_at", "2014-09-04 16:48:34.255229"]]
340073
+
340074
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.6ms
340075
+
340076
+ Sent mail to testemail7@gmail.com (4.6ms)
340077
+ Date: Thu, 04 Sep 2014 09:48:34 -0700
340078
+ From: noreply@domain.com
340079
+ To: testemail7@gmail.com
340080
+ Message-ID: <540897e23ff95_15b443fecad85a6e0217ab@Allans-MacBook-Pro.local.mail>
340081
+ Subject: New User Confirmation
340082
+ Mime-Version: 1.0
340083
+ Content-Type: text/html;
340084
+ charset=UTF-8
340085
+ Content-Transfer-Encoding: 7bit
340086
+
340087
+ Hi John Doe,
340088
+
340089
+ Below are your login credentials:
340090
+
340091
+ Email: testemail7@gmail.com
340092
+ Password: test123
340093
+
340094
+ Note: If this is not John Doe, please disregard this email.
340095
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340096
+ Processing by DealRedemptions::Admin::UserController#create as HTML
340097
+ Parameters: {"user"=>{"id"=>"10", "first_name"=>"John", "last_name"=>"Doe", "email"=>"testemail8@gmail.com", "password"=>"[FILTERED]"}}
340098
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 9]]
340099
+ Unpermitted parameters: id
340100
+  (0.0ms) SAVEPOINT active_record_1
340101
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'testemail8@gmail.com' LIMIT 1
340102
+ Binary data inserted for `string` type on column `password_hash`
340103
+ Binary data inserted for `string` type on column `password_salt`
340104
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:34.334294"], ["email", "testemail8@gmail.com"], ["first_name", "John"], ["last_login", "2014-09-04 16:48:34.334167"], ["last_name", "Doe"], ["password_hash", "$2a$10$wjOUhc7hfF8F.6vbIczTvOhJYI.Kn48gGJIbluPAlOvlgiQPwcSp2"], ["password_salt", "$2a$10$wjOUhc7hfF8F.6vbIczTvO"], ["updated_at", "2014-09-04 16:48:34.334294"]]
340105
+
340106
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.5ms
340107
+
340108
+ Sent mail to testemail8@gmail.com (4.5ms)
340109
+ Date: Thu, 04 Sep 2014 09:48:34 -0700
340110
+ From: noreply@domain.com
340111
+ To: testemail8@gmail.com
340112
+ Message-ID: <540897e253418_15b443fecad85a6e021872@Allans-MacBook-Pro.local.mail>
340113
+ Subject: New User Confirmation
340114
+ Mime-Version: 1.0
340115
+ Content-Type: text/html;
340116
+ charset=UTF-8
340117
+ Content-Transfer-Encoding: 7bit
340118
+
340119
+ Hi John Doe,
340120
+
340121
+ Below are your login credentials:
340122
+
340123
+ Email: testemail8@gmail.com
340124
+ Password: test123
340125
+
340126
+ Note: If this is not John Doe, please disregard this email.
340127
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340128
+ Redirected to http://test.host/deal_redemptions/admin/settings
340129
+ Completed 302 Found in 77ms (ActiveRecord: 0.6ms)
340130
+  (0.4ms) rollback transaction
340131
+  (0.1ms) begin transaction
340132
+  (0.0ms) commit transaction
340133
+  (0.0ms) begin transaction
340134
+  (0.0ms) SAVEPOINT active_record_1
340135
+ SQL (0.2ms) INSERT INTO "deal_redemptions_redemptions" ("address1", "address2", "city", "comments", "company_id", "country", "created_at", "email_address", "first_name", "id", "last_name", "phone", "state", "updated_at", "zip_code") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 N Street Rd"], ["address2", ""], ["city", "Valencia"], ["comments", "Comments going here."], ["company_id", 1], ["country", "United States"], ["created_at", "2014-09-04 16:48:34.350375"], ["email_address", "john@doe.com"], ["first_name", "John"], ["id", 1], ["last_name", "Doe"], ["phone", "6615557897"], ["state", "CA"], ["updated_at", "2014-09-04 16:48:34.350375"], ["zip_code", "91351"]]
340136
+  (0.0ms) RELEASE SAVEPOINT active_record_1
340137
+
340138
+ DealRedemptions::RedemptionMailer#confirmation: processed outbound mail in 12.7ms
340139
+  (0.5ms) rollback transaction
340140
+  (0.1ms) begin transaction
340141
+  (0.1ms) commit transaction
340142
+  (0.0ms) begin transaction
340143
+  (0.1ms) SAVEPOINT active_record_1
340144
+ SQL (0.3ms) INSERT INTO "deal_redemptions_redemptions" ("address1", "address2", "city", "comments", "company_id", "country", "created_at", "email_address", "first_name", "id", "last_name", "phone", "state", "updated_at", "zip_code") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 N Street Rd"], ["address2", ""], ["city", "Valencia"], ["comments", "Comments going here."], ["company_id", 1], ["country", "United States"], ["created_at", "2014-09-04 16:48:34.369790"], ["email_address", "john@doe.com"], ["first_name", "John"], ["id", 1], ["last_name", "Doe"], ["phone", "6615557897"], ["state", "CA"], ["updated_at", "2014-09-04 16:48:34.369790"], ["zip_code", "91351"]]
340145
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340146
+
340147
+ DealRedemptions::RedemptionMailer#confirmation: processed outbound mail in 5.2ms
340148
+  (0.4ms) rollback transaction
340149
+  (0.1ms) begin transaction
340150
+  (0.0ms) commit transaction
340151
+  (0.1ms) begin transaction
340152
+  (0.0ms) SAVEPOINT active_record_1
340153
+ SQL (0.3ms) INSERT INTO "deal_redemptions_redemptions" ("address1", "address2", "city", "comments", "company_id", "country", "created_at", "email_address", "first_name", "id", "last_name", "phone", "state", "updated_at", "zip_code") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "1600 N Street Rd"], ["address2", ""], ["city", "Valencia"], ["comments", "Comments going here."], ["company_id", 1], ["country", "United States"], ["created_at", "2014-09-04 16:48:34.380692"], ["email_address", "john@doe.com"], ["first_name", "John"], ["id", 1], ["last_name", "Doe"], ["phone", "6615557897"], ["state", "CA"], ["updated_at", "2014-09-04 16:48:34.380692"], ["zip_code", "91351"]]
340154
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340155
+
340156
+ DealRedemptions::RedemptionMailer#confirmation: processed outbound mail in 5.8ms
340157
+  (0.4ms) rollback transaction
340158
+  (0.1ms) begin transaction
340159
+  (0.0ms) commit transaction
340160
+  (0.0ms) begin transaction
340161
+  (0.0ms) SAVEPOINT active_record_1
340162
+ SQL (0.2ms) INSERT INTO "deal_redemptions_products" ("created_at", "id", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:34.391635"], ["id", 1], ["name", "Smile Sciences Teeth Whitening Pen"], ["updated_at", "2014-09-04 16:48:34.391635"], ["url", "http://www.redemptions.com"]]
340163
+  (0.0ms) RELEASE SAVEPOINT active_record_1
340164
+  (0.3ms) rollback transaction
340165
+  (0.1ms) begin transaction
340166
+  (0.0ms) commit transaction
340167
+  (0.0ms) begin transaction
340168
+  (0.0ms) rollback transaction
340169
+  (0.0ms) begin transaction
340170
+  (0.0ms) commit transaction
340171
+  (0.1ms) begin transaction
340172
+  (0.1ms) rollback transaction
340173
+  (0.1ms) begin transaction
340174
+  (0.0ms) commit transaction
340175
+  (0.0ms) begin transaction
340176
+  (0.1ms) SAVEPOINT active_record_1
340177
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
340178
+ Binary data inserted for `string` type on column `password_hash`
340179
+ Binary data inserted for `string` type on column `password_salt`
340180
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:34.470308"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:34.470094"], ["last_name", "Doe"], ["password_hash", "$2a$10$tKEdHMazoYYt.rW3SDh1DOKN4UlN/7L24OXulIIrpdqoG2UJmO8Z6"], ["password_salt", "$2a$10$tKEdHMazoYYt.rW3SDh1DO"], ["updated_at", "2014-09-04 16:48:34.470308"]]
340181
+
340182
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 5.8ms
340183
+
340184
+ Sent mail to johndoe@gmail.com (4.9ms)
340185
+ Date: Thu, 04 Sep 2014 09:48:34 -0700
340186
+ From: noreply@domain.com
340187
+ To: johndoe@gmail.com
340188
+ Message-ID: <540897e274e66_15b443fecad85a6e02195f@Allans-MacBook-Pro.local.mail>
340189
+ Subject: New User Confirmation
340190
+ Mime-Version: 1.0
340191
+ Content-Type: text/html;
340192
+ charset=UTF-8
340193
+ Content-Transfer-Encoding: 7bit
340194
+
340195
+ Hi John Doe,
340196
+
340197
+ Below are your login credentials:
340198
+
340199
+ Email: johndoe@gmail.com
340200
+ Password: test123
340201
+
340202
+ Note: If this is not John Doe, please disregard this email.
340203
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340204
+ Processing by DealRedemptions::Admin::SettingsController#index as HTML
340205
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
340206
+ Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)
340207
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" ORDER BY "deal_redemptions_users"."first_name" ASC
340208
+  (0.4ms) rollback transaction
340209
+  (0.1ms) begin transaction
340210
+  (0.0ms) commit transaction
340211
+  (0.0ms) begin transaction
340212
+  (0.0ms) SAVEPOINT active_record_1
340213
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
340214
+ Binary data inserted for `string` type on column `password_hash`
340215
+ Binary data inserted for `string` type on column `password_salt`
340216
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:34.556661"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:34.556466"], ["last_name", "Doe"], ["password_hash", "$2a$10$oBXN73KdS1/.9drGkyLbb.psmS4kiU3kNFgutIJVY/wdCnxQVaaLS"], ["password_salt", "$2a$10$oBXN73KdS1/.9drGkyLbb."], ["updated_at", "2014-09-04 16:48:34.556661"]]
340217
+
340218
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 5.2ms
340219
+
340220
+ Sent mail to johndoe@gmail.com (39.2ms)
340221
+ Date: Thu, 04 Sep 2014 09:48:34 -0700
340222
+ From: noreply@domain.com
340223
+ To: johndoe@gmail.com
340224
+ Message-ID: <540897e289c39_15b443fecad85a6e02201e@Allans-MacBook-Pro.local.mail>
340225
+ Subject: New User Confirmation
340226
+ Mime-Version: 1.0
340227
+ Content-Type: text/html;
340228
+ charset=UTF-8
340229
+ Content-Transfer-Encoding: 7bit
340230
+
340231
+ Hi John Doe,
340232
+
340233
+ Below are your login credentials:
340234
+
340235
+ Email: johndoe@gmail.com
340236
+ Password: test123
340237
+
340238
+ Note: If this is not John Doe, please disregard this email.
340239
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340240
+ Processing by DealRedemptions::Admin::SettingsController#index as HTML
340241
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
340242
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
340243
+  (1.7ms) rollback transaction
340244
+  (0.1ms) begin transaction
340245
+  (0.0ms) commit transaction
340246
+  (0.0ms) begin transaction
340247
+  (0.0ms) SAVEPOINT active_record_1
340248
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
340249
+ Binary data inserted for `string` type on column `password_hash`
340250
+ Binary data inserted for `string` type on column `password_salt`
340251
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:34.674820"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:34.674659"], ["last_name", "Doe"], ["password_hash", "$2a$10$SDpZ9Neexhf1bb6n.wgaL.7tou4Cr3AsERIeRae0.ZmmAAwIGqWvu"], ["password_salt", "$2a$10$SDpZ9Neexhf1bb6n.wgaL."], ["updated_at", "2014-09-04 16:48:34.674820"]]
340252
+
340253
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.7ms
340254
+
340255
+ Sent mail to johndoe@gmail.com (4.6ms)
340256
+ Date: Thu, 04 Sep 2014 09:48:34 -0700
340257
+ From: noreply@domain.com
340258
+ To: johndoe@gmail.com
340259
+ Message-ID: <540897e2a6727_15b443fecad85a6e02215e@Allans-MacBook-Pro.local.mail>
340260
+ Subject: New User Confirmation
340261
+ Mime-Version: 1.0
340262
+ Content-Type: text/html;
340263
+ charset=UTF-8
340264
+ Content-Transfer-Encoding: 7bit
340265
+
340266
+ Hi John Doe,
340267
+
340268
+ Below are your login credentials:
340269
+
340270
+ Email: johndoe@gmail.com
340271
+ Password: test123
340272
+
340273
+ Note: If this is not John Doe, please disregard this email.
340274
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340275
+ Processing by DealRedemptions::Admin::SettingsController#index as HTML
340276
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
340277
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
340278
+  (0.7ms) rollback transaction
340279
+  (0.1ms) begin transaction
340280
+  (0.0ms) commit transaction
340281
+  (0.0ms) begin transaction
340282
+  (0.0ms) rollback transaction
340283
+  (0.0ms) begin transaction
340284
+  (0.0ms) commit transaction
340285
+  (0.0ms) begin transaction
340286
+  (0.0ms) rollback transaction
340287
+  (0.0ms) begin transaction
340288
+  (0.0ms) commit transaction
340289
+  (0.0ms) begin transaction
340290
+  (0.0ms) rollback transaction
340291
+  (0.0ms) begin transaction
340292
+  (0.0ms) commit transaction
340293
+  (0.0ms) begin transaction
340294
+  (0.0ms) rollback transaction
340295
+  (0.0ms) begin transaction
340296
+  (0.0ms) commit transaction
340297
+  (0.0ms) begin transaction
340298
+  (0.0ms) rollback transaction
340299
+  (0.0ms) begin transaction
340300
+  (0.0ms) commit transaction
340301
+  (0.0ms) begin transaction
340302
+  (0.0ms) rollback transaction
340303
+  (0.0ms) begin transaction
340304
+  (0.0ms) commit transaction
340305
+  (0.0ms) begin transaction
340306
+  (0.1ms) rollback transaction
340307
+  (0.0ms) begin transaction
340308
+  (0.0ms) commit transaction
340309
+  (0.0ms) begin transaction
340310
+  (0.0ms) rollback transaction
340311
+  (0.0ms) begin transaction
340312
+  (0.0ms) commit transaction
340313
+  (0.0ms) begin transaction
340314
+  (0.0ms) rollback transaction
340315
+  (0.0ms) begin transaction
340316
+  (0.0ms) commit transaction
340317
+  (0.0ms) begin transaction
340318
+  (0.0ms) SAVEPOINT active_record_1
340319
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" = 'Groupon' LIMIT 1
340320
+ DealRedemptions::Company Exists (0.0ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = 'groupon' LIMIT 1
340321
+ SQL (0.2ms) INSERT INTO "deal_redemptions_companies" ("created_at", "description", "id", "name", "slug", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:34.709849"], ["description", "Please use the 2nd code, not internal code."], ["id", 1], ["name", "Groupon"], ["slug", "groupon"], ["updated_at", "2014-09-04 16:48:34.709849"], ["url", "http://www.groupon.com"]]
340322
+  (0.0ms) RELEASE SAVEPOINT active_record_1
340323
+  (0.0ms) SAVEPOINT active_record_1
340324
+ SQL (0.3ms) INSERT INTO "deal_redemptions_redeem_codes" ("code", "company_id", "created_at", "product_id", "redemption_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", 123456789], ["company_id", 1], ["created_at", "2014-09-04 16:48:34.711401"], ["product_id", 1], ["redemption_id", 1], ["updated_at", "2014-09-04 16:48:34.711401"]]
340325
+  (0.0ms) RELEASE SAVEPOINT active_record_1
340326
+ DealRedemptions::Company Load (0.1ms) SELECT "deal_redemptions_companies".* FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."id" = ? LIMIT 1 [["id", 1]]
340327
+  (0.4ms) rollback transaction
340328
+  (0.0ms) begin transaction
340329
+  (0.0ms) commit transaction
340330
+  (0.0ms) begin transaction
340331
+  (0.1ms) SAVEPOINT active_record_1
340332
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" = 'Groupon' LIMIT 1
340333
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = 'groupon' LIMIT 1
340334
+ SQL (0.2ms) INSERT INTO "deal_redemptions_companies" ("created_at", "description", "id", "name", "slug", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:34.720288"], ["description", "Please use the 2nd code, not internal code."], ["id", 1], ["name", "Groupon"], ["slug", "groupon"], ["updated_at", "2014-09-04 16:48:34.720288"], ["url", "http://www.groupon.com"]]
340335
+  (0.0ms) RELEASE SAVEPOINT active_record_1
340336
+  (0.0ms) SAVEPOINT active_record_1
340337
+ SQL (0.3ms) INSERT INTO "deal_redemptions_redeem_codes" ("code", "company_id", "created_at", "product_id", "redemption_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", 123456789], ["company_id", 1], ["created_at", "2014-09-04 16:48:34.721995"], ["product_id", 1], ["redemption_id", 1], ["updated_at", "2014-09-04 16:48:34.721995"]]
340338
+  (0.0ms) RELEASE SAVEPOINT active_record_1
340339
+ DealRedemptions::Company Load (0.0ms) SELECT "deal_redemptions_companies".* FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."id" = ? LIMIT 1 [["id", 1]]
340340
+  (0.4ms) rollback transaction
340341
+  (0.1ms) begin transaction
340342
+  (0.0ms) commit transaction
340343
+  (0.0ms) begin transaction
340344
+  (0.1ms) SAVEPOINT active_record_1
340345
+ DealRedemptions::Company Exists (0.2ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" = 'Groupon' LIMIT 1
340346
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = 'groupon' LIMIT 1
340347
+ SQL (0.2ms) INSERT INTO "deal_redemptions_companies" ("created_at", "description", "id", "name", "slug", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:34.728633"], ["description", "Please use the 2nd code, not internal code."], ["id", 1], ["name", "Groupon"], ["slug", "groupon"], ["updated_at", "2014-09-04 16:48:34.728633"], ["url", "http://www.groupon.com"]]
340348
+  (0.0ms) RELEASE SAVEPOINT active_record_1
340349
+  (0.0ms) SAVEPOINT active_record_1
340350
+ SQL (0.3ms) INSERT INTO "deal_redemptions_redeem_codes" ("code", "company_id", "created_at", "product_id", "redemption_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", 123456789], ["company_id", 1], ["created_at", "2014-09-04 16:48:34.730575"], ["product_id", 1], ["redemption_id", 1], ["updated_at", "2014-09-04 16:48:34.730575"]]
340351
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340352
+ DealRedemptions::Company Load (0.1ms) SELECT "deal_redemptions_companies".* FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."id" = ? LIMIT 1 [["id", 1]]
340353
+  (0.5ms) rollback transaction
340354
+  (0.1ms) begin transaction
340355
+  (0.0ms) commit transaction
340356
+  (0.0ms) begin transaction
340357
+  (0.0ms) rollback transaction
340358
+  (0.0ms) begin transaction
340359
+  (0.0ms) commit transaction
340360
+  (0.0ms) begin transaction
340361
+  (0.0ms) rollback transaction
340362
+  (0.0ms) begin transaction
340363
+  (0.0ms) commit transaction
340364
+  (0.0ms) begin transaction
340365
+  (0.0ms) rollback transaction
340366
+  (0.0ms) begin transaction
340367
+  (0.0ms) commit transaction
340368
+  (0.0ms) begin transaction
340369
+  (0.0ms) rollback transaction
340370
+  (0.0ms) begin transaction
340371
+  (0.0ms) commit transaction
340372
+  (0.0ms) begin transaction
340373
+  (0.0ms) SAVEPOINT active_record_1
340374
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
340375
+ Binary data inserted for `string` type on column `password_hash`
340376
+ Binary data inserted for `string` type on column `password_salt`
340377
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:34.811127"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:34.810957"], ["last_name", "Doe"], ["password_hash", "$2a$10$aupOoucoPZqXb7uQL/mMauIWKHOUjyYpA.mdZSZF9ELYS50z/gmwW"], ["password_salt", "$2a$10$aupOoucoPZqXb7uQL/mMau"], ["updated_at", "2014-09-04 16:48:34.811127"]]
340378
+
340379
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.6ms
340380
+
340381
+ Sent mail to johndoe@gmail.com (4.7ms)
340382
+ Date: Thu, 04 Sep 2014 09:48:34 -0700
340383
+ From: noreply@domain.com
340384
+ To: johndoe@gmail.com
340385
+ Message-ID: <540897e2c7b6c_15b443fecad85a6e022242@Allans-MacBook-Pro.local.mail>
340386
+ Subject: New User Confirmation
340387
+ Mime-Version: 1.0
340388
+ Content-Type: text/html;
340389
+ charset=UTF-8
340390
+ Content-Transfer-Encoding: 7bit
340391
+
340392
+ Hi John Doe,
340393
+
340394
+ Below are your login credentials:
340395
+
340396
+ Email: johndoe@gmail.com
340397
+ Password: test123
340398
+
340399
+ Note: If this is not John Doe, please disregard this email.
340400
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340401
+ Processing by DealRedemptions::Admin::RedeemCodesController#create as HTML
340402
+ Parameters: {"redeem_code"=>{"company_id"=>"1", "product_id"=>"1", "redemption_id"=>"1", "code"=>"", "status"=>"active"}}
340403
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
340404
+ Unpermitted parameters: redemption_id
340405
+  (0.1ms) SELECT COUNT(*) FROM "deal_redemptions_redeem_codes" WHERE (code = '' AND company_id = '1')
340406
+  (0.0ms) SAVEPOINT active_record_1
340407
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
340408
+ Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.3ms)
340409
+  (0.4ms) rollback transaction
340410
+  (0.0ms) begin transaction
340411
+  (0.0ms) commit transaction
340412
+  (0.0ms) begin transaction
340413
+  (0.0ms) SAVEPOINT active_record_1
340414
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
340415
+ Binary data inserted for `string` type on column `password_hash`
340416
+ Binary data inserted for `string` type on column `password_salt`
340417
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:34.900202"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:34.899981"], ["last_name", "Doe"], ["password_hash", "$2a$10$Jjepa2j0.5Uf5DUIXfVGkewLUKqlDhOaAYSXBo69Sl8nN7iiXeqQe"], ["password_salt", "$2a$10$Jjepa2j0.5Uf5DUIXfVGke"], ["updated_at", "2014-09-04 16:48:34.900202"]]
340418
+
340419
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 5.2ms
340420
+
340421
+ Sent mail to johndoe@gmail.com (5.0ms)
340422
+ Date: Thu, 04 Sep 2014 09:48:34 -0700
340423
+ From: noreply@domain.com
340424
+ To: johndoe@gmail.com
340425
+ Message-ID: <540897e2dd9df_15b443fecad85a6e02235c@Allans-MacBook-Pro.local.mail>
340426
+ Subject: New User Confirmation
340427
+ Mime-Version: 1.0
340428
+ Content-Type: text/html;
340429
+ charset=UTF-8
340430
+ Content-Transfer-Encoding: 7bit
340431
+
340432
+ Hi John Doe,
340433
+
340434
+ Below are your login credentials:
340435
+
340436
+ Email: johndoe@gmail.com
340437
+ Password: test123
340438
+
340439
+ Note: If this is not John Doe, please disregard this email.
340440
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340441
+ Processing by DealRedemptions::Admin::RedeemCodesController#create as HTML
340442
+ Parameters: {"redeem_code"=>{"company_id"=>"1", "product_id"=>"1", "redemption_id"=>"1", "code"=>"", "status"=>"active"}}
340443
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
340444
+ Unpermitted parameters: redemption_id
340445
+  (0.1ms) SELECT COUNT(*) FROM "deal_redemptions_redeem_codes" WHERE (code = '' AND company_id = '1')
340446
+  (0.0ms) SAVEPOINT active_record_1
340447
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
340448
+ Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.2ms)
340449
+  (0.7ms) rollback transaction
340450
+  (0.1ms) begin transaction
340451
+  (0.0ms) commit transaction
340452
+  (0.0ms) begin transaction
340453
+  (0.1ms) SAVEPOINT active_record_1
340454
+ DealRedemptions::User Exists (0.2ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
340455
+ Binary data inserted for `string` type on column `password_hash`
340456
+ Binary data inserted for `string` type on column `password_salt`
340457
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:34.990076"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:34.989901"], ["last_name", "Doe"], ["password_hash", "$2a$10$Ev8bQnMKVmH.UvxLUw0Rkea.QFfZ6GfMtpypDfrsuEKKFhDHCHKV2"], ["password_salt", "$2a$10$Ev8bQnMKVmH.UvxLUw0Rke"], ["updated_at", "2014-09-04 16:48:34.990076"]]
340458
+
340459
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 5.0ms
340460
+
340461
+ Sent mail to johndoe@gmail.com (5.3ms)
340462
+ Date: Thu, 04 Sep 2014 09:48:34 -0700
340463
+ From: noreply@domain.com
340464
+ To: johndoe@gmail.com
340465
+ Message-ID: <540897e2f383a_15b443fecad85a6e022451@Allans-MacBook-Pro.local.mail>
340466
+ Subject: New User Confirmation
340467
+ Mime-Version: 1.0
340468
+ Content-Type: text/html;
340469
+ charset=UTF-8
340470
+ Content-Transfer-Encoding: 7bit
340471
+
340472
+ Hi John Doe,
340473
+
340474
+ Below are your login credentials:
340475
+
340476
+ Email: johndoe@gmail.com
340477
+ Password: test123
340478
+
340479
+ Note: If this is not John Doe, please disregard this email.
340480
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340481
+ Processing by DealRedemptions::Admin::RedeemCodesController#create as HTML
340482
+ Parameters: {"redeem_code"=>{"company_id"=>"1", "product_id"=>"1", "redemption_id"=>"1", "code"=>"123456789", "status"=>"active"}}
340483
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
340484
+ Unpermitted parameters: redemption_id
340485
+  (0.1ms) SELECT COUNT(*) FROM "deal_redemptions_redeem_codes" WHERE (code = '123456789' AND company_id = '1')
340486
+  (0.0ms) SAVEPOINT active_record_1
340487
+ SQL (0.4ms) INSERT INTO "deal_redemptions_redeem_codes" ("code", "company_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["code", "123456789"], ["company_id", 1], ["created_at", "2014-09-04 16:48:35.039690"], ["product_id", 1], ["updated_at", "2014-09-04 16:48:35.039690"]]
340488
+  (0.0ms) RELEASE SAVEPOINT active_record_1
340489
+ Redirected to http://test.host/deal_redemptions/admin/redeem_codes
340490
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
340491
+  (1.8ms) rollback transaction
340492
+  (0.0ms) begin transaction
340493
+  (0.0ms) commit transaction
340494
+  (0.0ms) begin transaction
340495
+  (0.0ms) SAVEPOINT active_record_1
340496
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
340497
+ Binary data inserted for `string` type on column `password_hash`
340498
+ Binary data inserted for `string` type on column `password_salt`
340499
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:35.110517"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:35.110354"], ["last_name", "Doe"], ["password_hash", "$2a$10$/Kjf4zILOO/uUCN9YCzK4egSUOkWzytaOIUCY4fXwShhpkykRDW1W"], ["password_salt", "$2a$10$/Kjf4zILOO/uUCN9YCzK4e"], ["updated_at", "2014-09-04 16:48:35.110517"]]
340500
+
340501
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.8ms
340502
+
340503
+ Sent mail to johndoe@gmail.com (4.6ms)
340504
+ Date: Thu, 04 Sep 2014 09:48:35 -0700
340505
+ From: noreply@domain.com
340506
+ To: johndoe@gmail.com
340507
+ Message-ID: <540897e31cba8_15b443fecad85a6e0225d5@Allans-MacBook-Pro.local.mail>
340508
+ Subject: New User Confirmation
340509
+ Mime-Version: 1.0
340510
+ Content-Type: text/html;
340511
+ charset=UTF-8
340512
+ Content-Transfer-Encoding: 7bit
340513
+
340514
+ Hi John Doe,
340515
+
340516
+ Below are your login credentials:
340517
+
340518
+ Email: johndoe@gmail.com
340519
+ Password: test123
340520
+
340521
+ Note: If this is not John Doe, please disregard this email.
340522
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340523
+ Processing by DealRedemptions::Admin::RedeemCodesController#create as HTML
340524
+ Parameters: {"redeem_code"=>{"company_id"=>"1", "product_id"=>"1", "redemption_id"=>"1", "code"=>"123456789", "status"=>"active"}}
340525
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
340526
+ Unpermitted parameters: redemption_id
340527
+  (0.1ms) SELECT COUNT(*) FROM "deal_redemptions_redeem_codes" WHERE (code = '123456789' AND company_id = '1')
340528
+  (0.1ms) SAVEPOINT active_record_1
340529
+ SQL (0.3ms) INSERT INTO "deal_redemptions_redeem_codes" ("code", "company_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["code", "123456789"], ["company_id", 1], ["created_at", "2014-09-04 16:48:35.126528"], ["product_id", 1], ["updated_at", "2014-09-04 16:48:35.126528"]]
340530
+  (0.0ms) RELEASE SAVEPOINT active_record_1
340531
+ Redirected to http://test.host/deal_redemptions/admin/redeem_codes
340532
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
340533
+  (0.7ms) rollback transaction
340534
+  (0.0ms) begin transaction
340535
+  (0.0ms) commit transaction
340536
+  (0.0ms) begin transaction
340537
+  (0.0ms) SAVEPOINT active_record_1
340538
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
340539
+ Binary data inserted for `string` type on column `password_hash`
340540
+ Binary data inserted for `string` type on column `password_salt`
340541
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:35.196279"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:35.195998"], ["last_name", "Doe"], ["password_hash", "$2a$10$W63UsLEYTwZdB/sPq8JFtuUO4/.6d09HZRP562ibhRr6.81Fu800K"], ["password_salt", "$2a$10$W63UsLEYTwZdB/sPq8JFtu"], ["updated_at", "2014-09-04 16:48:35.196279"]]
340542
+
340543
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 5.9ms
340544
+
340545
+ Sent mail to johndoe@gmail.com (5.0ms)
340546
+ Date: Thu, 04 Sep 2014 09:48:35 -0700
340547
+ From: noreply@domain.com
340548
+ To: johndoe@gmail.com
340549
+ Message-ID: <540897e331ebd_15b443fecad85a6e0226bc@Allans-MacBook-Pro.local.mail>
340550
+ Subject: New User Confirmation
340551
+ Mime-Version: 1.0
340552
+ Content-Type: text/html;
340553
+ charset=UTF-8
340554
+ Content-Transfer-Encoding: 7bit
340555
+
340556
+ Hi John Doe,
340557
+
340558
+ Below are your login credentials:
340559
+
340560
+ Email: johndoe@gmail.com
340561
+ Password: test123
340562
+
340563
+ Note: If this is not John Doe, please disregard this email.
340564
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340565
+  (0.1ms) SELECT COUNT(*) FROM "deal_redemptions_redeem_codes"
340566
+ Processing by DealRedemptions::Admin::RedeemCodesController#create as HTML
340567
+ Parameters: {"redeem_code"=>{"company_id"=>"1", "product_id"=>"1", "redemption_id"=>"1", "code"=>"123456789", "status"=>"active"}}
340568
+ DealRedemptions::User Load (0.0ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
340569
+ Unpermitted parameters: redemption_id
340570
+  (0.1ms) SELECT COUNT(*) FROM "deal_redemptions_redeem_codes" WHERE (code = '123456789' AND company_id = '1')
340571
+  (0.0ms) SAVEPOINT active_record_1
340572
+ SQL (0.3ms) INSERT INTO "deal_redemptions_redeem_codes" ("code", "company_id", "created_at", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["code", "123456789"], ["company_id", 1], ["created_at", "2014-09-04 16:48:35.214201"], ["product_id", 1], ["updated_at", "2014-09-04 16:48:35.214201"]]
340573
+  (0.0ms) RELEASE SAVEPOINT active_record_1
340574
+ Redirected to http://test.host/deal_redemptions/admin/redeem_codes
340575
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
340576
+  (0.1ms) SELECT COUNT(*) FROM "deal_redemptions_redeem_codes"
340577
+  (0.4ms) rollback transaction
340578
+  (0.0ms) begin transaction
340579
+  (0.0ms) commit transaction
340580
+  (0.0ms) begin transaction
340581
+  (0.0ms) SAVEPOINT active_record_1
340582
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
340583
+ Binary data inserted for `string` type on column `password_hash`
340584
+ Binary data inserted for `string` type on column `password_salt`
340585
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:35.284209"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:35.284051"], ["last_name", "Doe"], ["password_hash", "$2a$10$ui3hMgmn3qPNaqZCu/IqwuEjFn.N4Fc4U1LmkiZi23DVFj/956qp."], ["password_salt", "$2a$10$ui3hMgmn3qPNaqZCu/Iqwu"], ["updated_at", "2014-09-04 16:48:35.284209"]]
340586
+
340587
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.5ms
340588
+
340589
+ Sent mail to johndoe@gmail.com (4.6ms)
340590
+ Date: Thu, 04 Sep 2014 09:48:35 -0700
340591
+ From: noreply@domain.com
340592
+ To: johndoe@gmail.com
340593
+ Message-ID: <540897e3470ac_15b443fecad85a6e022756@Allans-MacBook-Pro.local.mail>
340594
+ Subject: New User Confirmation
340595
+ Mime-Version: 1.0
340596
+ Content-Type: text/html;
340597
+ charset=UTF-8
340598
+ Content-Transfer-Encoding: 7bit
340599
+
340600
+ Hi John Doe,
340601
+
340602
+ Below are your login credentials:
340603
+
340604
+ Email: johndoe@gmail.com
340605
+ Password: test123
340606
+
340607
+ Note: If this is not John Doe, please disregard this email.
340608
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340609
+ Processing by DealRedemptions::Admin::RedeemCodesController#new as HTML
340610
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
340611
+ Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
340612
+  (0.6ms) rollback transaction
340613
+  (0.1ms) begin transaction
340614
+  (0.0ms) commit transaction
340615
+  (0.1ms) begin transaction
340616
+  (0.1ms) SAVEPOINT active_record_1
340617
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
340618
+ Binary data inserted for `string` type on column `password_hash`
340619
+ Binary data inserted for `string` type on column `password_salt`
340620
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:35.370432"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:35.370266"], ["last_name", "Doe"], ["password_hash", "$2a$10$pSvMRr.OH6vgY98lj5wpNObOR31uxNBL8Sd8LCvw8mK3HLmrZBPTi"], ["password_salt", "$2a$10$pSvMRr.OH6vgY98lj5wpNO"], ["updated_at", "2014-09-04 16:48:35.370432"]]
340621
+
340622
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.4ms
340623
+
340624
+ Sent mail to johndoe@gmail.com (4.4ms)
340625
+ Date: Thu, 04 Sep 2014 09:48:35 -0700
340626
+ From: noreply@domain.com
340627
+ To: johndoe@gmail.com
340628
+ Message-ID: <540897e35c0a8_15b443fecad85a6e02285a@Allans-MacBook-Pro.local.mail>
340629
+ Subject: New User Confirmation
340630
+ Mime-Version: 1.0
340631
+ Content-Type: text/html;
340632
+ charset=UTF-8
340633
+ Content-Transfer-Encoding: 7bit
340634
+
340635
+ Hi John Doe,
340636
+
340637
+ Below are your login credentials:
340638
+
340639
+ Email: johndoe@gmail.com
340640
+ Password: test123
340641
+
340642
+ Note: If this is not John Doe, please disregard this email.
340643
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340644
+  (0.0ms) SAVEPOINT active_record_1
340645
+ SQL (0.3ms) INSERT INTO "deal_redemptions_redeem_codes" ("code", "company_id", "created_at", "product_id", "redemption_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", 123456789], ["company_id", 1], ["created_at", "2014-09-04 16:48:35.382163"], ["product_id", 1], ["redemption_id", 1], ["updated_at", "2014-09-04 16:48:35.382163"]]
340646
+  (0.0ms) RELEASE SAVEPOINT active_record_1
340647
+ Processing by DealRedemptions::Admin::RedeemCodesController#destroy as HTML
340648
+ Parameters: {"id"=>"1"}
340649
+ DealRedemptions::User Load (0.0ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
340650
+ DealRedemptions::RedeemCode Load (0.1ms) SELECT "deal_redemptions_redeem_codes".* FROM "deal_redemptions_redeem_codes" WHERE "deal_redemptions_redeem_codes"."id" = ? LIMIT 1 [["id", 1]]
340651
+  (0.0ms) SAVEPOINT active_record_1
340652
+ SQL (0.1ms) DELETE FROM "deal_redemptions_redeem_codes" WHERE "deal_redemptions_redeem_codes"."id" = ? [["id", 1]]
340653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
340654
+ Redirected to http://test.host/deal_redemptions/admin/redeem_codes
340655
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
340656
+  (0.9ms) rollback transaction
340657
+  (0.1ms) begin transaction
340658
+  (0.0ms) commit transaction
340659
+  (0.0ms) begin transaction
340660
+  (0.1ms) SAVEPOINT active_record_1
340661
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
340662
+ Binary data inserted for `string` type on column `password_hash`
340663
+ Binary data inserted for `string` type on column `password_salt`
340664
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:35.458338"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:35.458174"], ["last_name", "Doe"], ["password_hash", "$2a$10$gsGykBcQAE9TVRAXeBfuuevQ5ijw/Rj3x9Y/Ar8C.4IJ.KZNv5vXi"], ["password_salt", "$2a$10$gsGykBcQAE9TVRAXeBfuue"], ["updated_at", "2014-09-04 16:48:35.458338"]]
340665
+
340666
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.7ms
340667
+
340668
+ Sent mail to johndoe@gmail.com (4.6ms)
340669
+ Date: Thu, 04 Sep 2014 09:48:35 -0700
340670
+ From: noreply@domain.com
340671
+ To: johndoe@gmail.com
340672
+ Message-ID: <540897e3719f5_15b443fecad85a6e0229d7@Allans-MacBook-Pro.local.mail>
340673
+ Subject: New User Confirmation
340674
+ Mime-Version: 1.0
340675
+ Content-Type: text/html;
340676
+ charset=UTF-8
340677
+ Content-Transfer-Encoding: 7bit
340678
+
340679
+ Hi John Doe,
340680
+
340681
+ Below are your login credentials:
340682
+
340683
+ Email: johndoe@gmail.com
340684
+ Password: test123
340685
+
340686
+ Note: If this is not John Doe, please disregard this email.
340687
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340688
+  (0.0ms) SAVEPOINT active_record_1
340689
+ SQL (0.3ms) INSERT INTO "deal_redemptions_redeem_codes" ("code", "company_id", "created_at", "product_id", "redemption_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", 123456789], ["company_id", 1], ["created_at", "2014-09-04 16:48:35.470798"], ["product_id", 1], ["redemption_id", 1], ["updated_at", "2014-09-04 16:48:35.470798"]]
340690
+  (0.0ms) RELEASE SAVEPOINT active_record_1
340691
+  (0.1ms) SELECT COUNT(*) FROM "deal_redemptions_redeem_codes"
340692
+ Processing by DealRedemptions::Admin::RedeemCodesController#destroy as HTML
340693
+ Parameters: {"id"=>"1"}
340694
+ DealRedemptions::User Load (0.0ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
340695
+ DealRedemptions::RedeemCode Load (0.0ms) SELECT "deal_redemptions_redeem_codes".* FROM "deal_redemptions_redeem_codes" WHERE "deal_redemptions_redeem_codes"."id" = ? LIMIT 1 [["id", 1]]
340696
+  (0.0ms) SAVEPOINT active_record_1
340697
+ SQL (0.1ms) DELETE FROM "deal_redemptions_redeem_codes" WHERE "deal_redemptions_redeem_codes"."id" = ? [["id", 1]]
340698
+  (0.0ms) RELEASE SAVEPOINT active_record_1
340699
+ Redirected to http://test.host/deal_redemptions/admin/redeem_codes
340700
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
340701
+  (0.0ms) SELECT COUNT(*) FROM "deal_redemptions_redeem_codes"
340702
+  (1.1ms) rollback transaction
340703
+  (0.1ms) begin transaction
340704
+  (0.0ms) commit transaction
340705
+  (0.0ms) begin transaction
340706
+  (0.0ms) SAVEPOINT active_record_1
340707
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
340708
+ Binary data inserted for `string` type on column `password_hash`
340709
+ Binary data inserted for `string` type on column `password_salt`
340710
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:35.544723"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:35.544483"], ["last_name", "Doe"], ["password_hash", "$2a$10$J/hDIr5XP4i4DOYoJNru2ebYv6rBbXCXRyw9yZEPx8zYDLRHFCBZa"], ["password_salt", "$2a$10$J/hDIr5XP4i4DOYoJNru2e"], ["updated_at", "2014-09-04 16:48:35.544723"]]
340711
+
340712
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 5.3ms
340713
+
340714
+ Sent mail to johndoe@gmail.com (37.4ms)
340715
+ Date: Thu, 04 Sep 2014 09:48:35 -0700
340716
+ From: noreply@domain.com
340717
+ To: johndoe@gmail.com
340718
+ Message-ID: <540897e386e0e_15b443fecad85a6e023083@Allans-MacBook-Pro.local.mail>
340719
+ Subject: New User Confirmation
340720
+ Mime-Version: 1.0
340721
+ Content-Type: text/html;
340722
+ charset=UTF-8
340723
+ Content-Transfer-Encoding: 7bit
340724
+
340725
+ Hi John Doe,
340726
+
340727
+ Below are your login credentials:
340728
+
340729
+ Email: johndoe@gmail.com
340730
+ Password: test123
340731
+
340732
+ Note: If this is not John Doe, please disregard this email.
340733
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340734
+  (0.0ms) SAVEPOINT active_record_1
340735
+ SQL (0.3ms) INSERT INTO "deal_redemptions_redeem_codes" ("code", "company_id", "created_at", "product_id", "redemption_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", 123456789], ["company_id", 1], ["created_at", "2014-09-04 16:48:35.590811"], ["product_id", 1], ["redemption_id", 1], ["updated_at", "2014-09-04 16:48:35.590811"]]
340736
+  (0.0ms) RELEASE SAVEPOINT active_record_1
340737
+ Processing by DealRedemptions::Admin::RedeemCodesController#edit as HTML
340738
+ Parameters: {"id"=>"1"}
340739
+ DealRedemptions::User Load (0.0ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
340740
+ DealRedemptions::RedeemCode Load (0.0ms) SELECT "deal_redemptions_redeem_codes".* FROM "deal_redemptions_redeem_codes" WHERE "deal_redemptions_redeem_codes"."id" = ? LIMIT 1 [["id", 1]]
340741
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)
340742
+  (0.4ms) rollback transaction
340743
+  (0.1ms) begin transaction
340744
+  (0.0ms) commit transaction
340745
+  (0.0ms) begin transaction
340746
+  (0.0ms) SAVEPOINT active_record_1
340747
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
340748
+ Binary data inserted for `string` type on column `password_hash`
340749
+ Binary data inserted for `string` type on column `password_salt`
340750
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:35.666191"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:35.665925"], ["last_name", "Doe"], ["password_hash", "$2a$10$/NJEWSYT5FvCTKNp3EYFjOoBnApmMeUCVfA.xcdARyomPPvM.pVIy"], ["password_salt", "$2a$10$/NJEWSYT5FvCTKNp3EYFjO"], ["updated_at", "2014-09-04 16:48:35.666191"]]
340751
+
340752
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.6ms
340753
+
340754
+ Sent mail to johndoe@gmail.com (4.4ms)
340755
+ Date: Thu, 04 Sep 2014 09:48:35 -0700
340756
+ From: noreply@domain.com
340757
+ To: johndoe@gmail.com
340758
+ Message-ID: <540897e3a4537_15b443fecad85a6e0231d2@Allans-MacBook-Pro.local.mail>
340759
+ Subject: New User Confirmation
340760
+ Mime-Version: 1.0
340761
+ Content-Type: text/html;
340762
+ charset=UTF-8
340763
+ Content-Transfer-Encoding: 7bit
340764
+
340765
+ Hi John Doe,
340766
+
340767
+ Below are your login credentials:
340768
+
340769
+ Email: johndoe@gmail.com
340770
+ Password: test123
340771
+
340772
+ Note: If this is not John Doe, please disregard this email.
340773
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340774
+  (0.0ms) SAVEPOINT active_record_1
340775
+ SQL (0.5ms) INSERT INTO "deal_redemptions_redeem_codes" ("code", "company_id", "created_at", "product_id", "redemption_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", 123456789], ["company_id", 1], ["created_at", "2014-09-04 16:48:35.678332"], ["product_id", 1], ["redemption_id", 1], ["updated_at", "2014-09-04 16:48:35.678332"]]
340776
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340777
+ Processing by DealRedemptions::Admin::RedeemCodesController#index as HTML
340778
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
340779
+ Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)
340780
+ DealRedemptions::RedeemCode Load (0.2ms) SELECT "deal_redemptions_redeem_codes".* FROM "deal_redemptions_redeem_codes" ORDER BY "deal_redemptions_redeem_codes"."code" ASC LIMIT 25 OFFSET 0
340781
+ DealRedemptions::Company Load (0.2ms) SELECT "deal_redemptions_companies".* FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."id" IN (1)
340782
+  (0.4ms) rollback transaction
340783
+  (0.1ms) begin transaction
340784
+  (0.0ms) commit transaction
340785
+  (0.0ms) begin transaction
340786
+  (0.1ms) SAVEPOINT active_record_1
340787
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
340788
+ Binary data inserted for `string` type on column `password_hash`
340789
+ Binary data inserted for `string` type on column `password_salt`
340790
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:35.762760"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:35.762594"], ["last_name", "Doe"], ["password_hash", "$2a$10$KG.jpf1UYSKHzsJIpEvykelx0rdMJUZXF5mXR7CUY7Q.u.9VBOBae"], ["password_salt", "$2a$10$KG.jpf1UYSKHzsJIpEvyke"], ["updated_at", "2014-09-04 16:48:35.762760"]]
340791
+
340792
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.6ms
340793
+
340794
+ Sent mail to johndoe@gmail.com (4.4ms)
340795
+ Date: Thu, 04 Sep 2014 09:48:35 -0700
340796
+ From: noreply@domain.com
340797
+ To: johndoe@gmail.com
340798
+ Message-ID: <540897e3bbe3e_15b443fecad85a6e023291@Allans-MacBook-Pro.local.mail>
340799
+ Subject: New User Confirmation
340800
+ Mime-Version: 1.0
340801
+ Content-Type: text/html;
340802
+ charset=UTF-8
340803
+ Content-Transfer-Encoding: 7bit
340804
+
340805
+ Hi John Doe,
340806
+
340807
+ Below are your login credentials:
340808
+
340809
+ Email: johndoe@gmail.com
340810
+ Password: test123
340811
+
340812
+ Note: If this is not John Doe, please disregard this email.
340813
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340814
+  (0.0ms) SAVEPOINT active_record_1
340815
+ SQL (0.3ms) INSERT INTO "deal_redemptions_redeem_codes" ("code", "company_id", "created_at", "product_id", "redemption_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", 123456789], ["company_id", 1], ["created_at", "2014-09-04 16:48:35.774806"], ["product_id", 1], ["redemption_id", 1], ["updated_at", "2014-09-04 16:48:35.774806"]]
340816
+  (0.0ms) RELEASE SAVEPOINT active_record_1
340817
+ Processing by DealRedemptions::Admin::RedeemCodesController#update as HTML
340818
+ Parameters: {"redeem_code"=>{"company_id"=>"1", "product_id"=>"1", "redemption_id"=>"1", "code"=>"", "status"=>"active"}, "id"=>"1"}
340819
+ DealRedemptions::User Load (0.0ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
340820
+ DealRedemptions::RedeemCode Load (0.0ms) SELECT "deal_redemptions_redeem_codes".* FROM "deal_redemptions_redeem_codes" WHERE "deal_redemptions_redeem_codes"."id" = ? LIMIT 1 [["id", 1]]
340821
+  (0.1ms) SELECT COUNT(*) FROM "deal_redemptions_redeem_codes" WHERE (code = '' AND company_id = '1')
340822
+ Unpermitted parameters: redemption_id
340823
+  (0.0ms) SAVEPOINT active_record_1
340824
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
340825
+ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.2ms)
340826
+  (0.8ms) rollback transaction
340827
+  (0.1ms) begin transaction
340828
+  (0.0ms) commit transaction
340829
+  (0.0ms) begin transaction
340830
+  (0.1ms) SAVEPOINT active_record_1
340831
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
340832
+ Binary data inserted for `string` type on column `password_hash`
340833
+ Binary data inserted for `string` type on column `password_salt`
340834
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:35.853416"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:35.853249"], ["last_name", "Doe"], ["password_hash", "$2a$10$yU21pAp6biL2kdFrIJh0U.8RE9/PuUhZ3rVg/ozWQbMBQH4RySjWu"], ["password_salt", "$2a$10$yU21pAp6biL2kdFrIJh0U."], ["updated_at", "2014-09-04 16:48:35.853416"]]
340835
+
340836
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.6ms
340837
+
340838
+ Sent mail to johndoe@gmail.com (4.6ms)
340839
+ Date: Thu, 04 Sep 2014 09:48:35 -0700
340840
+ From: noreply@domain.com
340841
+ To: johndoe@gmail.com
340842
+ Message-ID: <540897e3d20d5_15b443fecad85a6e0233fa@Allans-MacBook-Pro.local.mail>
340843
+ Subject: New User Confirmation
340844
+ Mime-Version: 1.0
340845
+ Content-Type: text/html;
340846
+ charset=UTF-8
340847
+ Content-Transfer-Encoding: 7bit
340848
+
340849
+ Hi John Doe,
340850
+
340851
+ Below are your login credentials:
340852
+
340853
+ Email: johndoe@gmail.com
340854
+ Password: test123
340855
+
340856
+ Note: If this is not John Doe, please disregard this email.
340857
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340858
+  (0.0ms) SAVEPOINT active_record_1
340859
+ SQL (0.4ms) INSERT INTO "deal_redemptions_redeem_codes" ("code", "company_id", "created_at", "product_id", "redemption_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", 123456789], ["company_id", 1], ["created_at", "2014-09-04 16:48:35.865715"], ["product_id", 1], ["redemption_id", 1], ["updated_at", "2014-09-04 16:48:35.865715"]]
340860
+  (0.0ms) RELEASE SAVEPOINT active_record_1
340861
+ Processing by DealRedemptions::Admin::RedeemCodesController#update as HTML
340862
+ Parameters: {"redeem_code"=>{"company_id"=>"1", "product_id"=>"1", "redemption_id"=>"1", "code"=>"", "status"=>"active"}, "id"=>"1"}
340863
+ DealRedemptions::User Load (0.0ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
340864
+ DealRedemptions::RedeemCode Load (0.0ms) SELECT "deal_redemptions_redeem_codes".* FROM "deal_redemptions_redeem_codes" WHERE "deal_redemptions_redeem_codes"."id" = ? LIMIT 1 [["id", 1]]
340865
+  (0.1ms) SELECT COUNT(*) FROM "deal_redemptions_redeem_codes" WHERE (code = '' AND company_id = '1')
340866
+ Unpermitted parameters: redemption_id
340867
+  (0.1ms) SAVEPOINT active_record_1
340868
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
340869
+ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.3ms)
340870
+  (0.8ms) rollback transaction
340871
+  (0.0ms) begin transaction
340872
+  (0.0ms) commit transaction
340873
+  (0.0ms) begin transaction
340874
+  (0.1ms) SAVEPOINT active_record_1
340875
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
340876
+ Binary data inserted for `string` type on column `password_hash`
340877
+ Binary data inserted for `string` type on column `password_salt`
340878
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:35.942764"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:35.942596"], ["last_name", "Doe"], ["password_hash", "$2a$10$MoBpLkX1EbiesDZ.yGOfGuyfSUjjh/CCS3I/whLxZPG89SZjy0Qma"], ["password_salt", "$2a$10$MoBpLkX1EbiesDZ.yGOfGu"], ["updated_at", "2014-09-04 16:48:35.942764"]]
340879
+
340880
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.6ms
340881
+
340882
+ Sent mail to johndoe@gmail.com (4.8ms)
340883
+ Date: Thu, 04 Sep 2014 09:48:35 -0700
340884
+ From: noreply@domain.com
340885
+ To: johndoe@gmail.com
340886
+ Message-ID: <540897e3e7d9a_15b443fecad85a6e023479@Allans-MacBook-Pro.local.mail>
340887
+ Subject: New User Confirmation
340888
+ Mime-Version: 1.0
340889
+ Content-Type: text/html;
340890
+ charset=UTF-8
340891
+ Content-Transfer-Encoding: 7bit
340892
+
340893
+ Hi John Doe,
340894
+
340895
+ Below are your login credentials:
340896
+
340897
+ Email: johndoe@gmail.com
340898
+ Password: test123
340899
+
340900
+ Note: If this is not John Doe, please disregard this email.
340901
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340902
+  (0.0ms) SAVEPOINT active_record_1
340903
+ SQL (0.3ms) INSERT INTO "deal_redemptions_redeem_codes" ("code", "company_id", "created_at", "product_id", "redemption_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", 123456789], ["company_id", 1], ["created_at", "2014-09-04 16:48:35.955217"], ["product_id", 1], ["redemption_id", 1], ["updated_at", "2014-09-04 16:48:35.955217"]]
340904
+  (0.0ms) RELEASE SAVEPOINT active_record_1
340905
+ Processing by DealRedemptions::Admin::RedeemCodesController#update as HTML
340906
+ Parameters: {"redeem_code"=>{"company_id"=>"1", "product_id"=>"1", "redemption_id"=>"1", "code"=>"123456789", "status"=>"active"}, "id"=>"1"}
340907
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
340908
+ DealRedemptions::RedeemCode Load (0.0ms) SELECT "deal_redemptions_redeem_codes".* FROM "deal_redemptions_redeem_codes" WHERE "deal_redemptions_redeem_codes"."id" = ? LIMIT 1 [["id", 1]]
340909
+  (0.1ms) SELECT COUNT(*) FROM "deal_redemptions_redeem_codes" WHERE (code = '123456789' AND company_id = '1')
340910
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms)
340911
+  (0.9ms) rollback transaction
340912
+  (0.1ms) begin transaction
340913
+  (0.1ms) commit transaction
340914
+  (0.1ms) begin transaction
340915
+  (0.1ms) SAVEPOINT active_record_1
340916
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
340917
+ Binary data inserted for `string` type on column `password_hash`
340918
+ Binary data inserted for `string` type on column `password_salt`
340919
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:36.032699"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:36.032547"], ["last_name", "Doe"], ["password_hash", "$2a$10$eyLpQCCsphNqPrkkN489x.hFnuq8/koFT8bj2ZsFQ6cghAZLX.iuy"], ["password_salt", "$2a$10$eyLpQCCsphNqPrkkN489x."], ["updated_at", "2014-09-04 16:48:36.032699"]]
340920
+
340921
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.8ms
340922
+
340923
+ Sent mail to johndoe@gmail.com (4.8ms)
340924
+ Date: Thu, 04 Sep 2014 09:48:36 -0700
340925
+ From: noreply@domain.com
340926
+ To: johndoe@gmail.com
340927
+ Message-ID: <540897e49b1e_15b443fecad85a6e023541@Allans-MacBook-Pro.local.mail>
340928
+ Subject: New User Confirmation
340929
+ Mime-Version: 1.0
340930
+ Content-Type: text/html;
340931
+ charset=UTF-8
340932
+ Content-Transfer-Encoding: 7bit
340933
+
340934
+ Hi John Doe,
340935
+
340936
+ Below are your login credentials:
340937
+
340938
+ Email: johndoe@gmail.com
340939
+ Password: test123
340940
+
340941
+ Note: If this is not John Doe, please disregard this email.
340942
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340943
+  (0.0ms) SAVEPOINT active_record_1
340944
+ SQL (0.3ms) INSERT INTO "deal_redemptions_redeem_codes" ("code", "company_id", "created_at", "product_id", "redemption_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", 123456789], ["company_id", 1], ["created_at", "2014-09-04 16:48:36.045421"], ["product_id", 1], ["redemption_id", 1], ["updated_at", "2014-09-04 16:48:36.045421"]]
340945
+  (0.0ms) RELEASE SAVEPOINT active_record_1
340946
+ Processing by DealRedemptions::Admin::RedeemCodesController#update as HTML
340947
+ Parameters: {"redeem_code"=>{"company_id"=>"1", "product_id"=>"1", "redemption_id"=>"1", "code"=>"123456789", "status"=>"active"}, "id"=>"1"}
340948
+ DealRedemptions::User Load (0.0ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
340949
+ DealRedemptions::RedeemCode Load (0.1ms) SELECT "deal_redemptions_redeem_codes".* FROM "deal_redemptions_redeem_codes" WHERE "deal_redemptions_redeem_codes"."id" = ? LIMIT 1 [["id", 1]]
340950
+  (0.1ms) SELECT COUNT(*) FROM "deal_redemptions_redeem_codes" WHERE (code = '123456789' AND company_id = '1')
340951
+ Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.2ms)
340952
+ DealRedemptions::RedeemCode Load (0.0ms) SELECT "deal_redemptions_redeem_codes".* FROM "deal_redemptions_redeem_codes" WHERE "deal_redemptions_redeem_codes"."id" = ? LIMIT 1 [["id", 1]]
340953
+  (0.7ms) rollback transaction
340954
+  (0.1ms) begin transaction
340955
+  (0.0ms) commit transaction
340956
+  (0.0ms) begin transaction
340957
+  (0.1ms) SAVEPOINT active_record_1
340958
+ DealRedemptions::Company Exists (0.2ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" = 'Groupon' LIMIT 1
340959
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = 'groupon' LIMIT 1
340960
+ SQL (0.3ms) INSERT INTO "deal_redemptions_companies" ("created_at", "description", "id", "name", "slug", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:36.089978"], ["description", "Please use the 2nd code, not internal code."], ["id", 1], ["name", "Groupon"], ["slug", "groupon"], ["updated_at", "2014-09-04 16:48:36.089978"], ["url", "http://www.groupon.com"]]
340961
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340962
+  (0.4ms) rollback transaction
340963
+  (0.1ms) begin transaction
340964
+  (0.0ms) commit transaction
340965
+  (0.0ms) begin transaction
340966
+ DealRedemptions::Company Load (0.2ms) SELECT "deal_redemptions_companies".* FROM "deal_redemptions_companies" ORDER BY "deal_redemptions_companies"."id" ASC LIMIT 1
340967
+  (0.1ms) SAVEPOINT active_record_1
340968
+ SQL (0.3ms) INSERT INTO "deal_redemptions_companies" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-04 16:48:36.097076"], ["name", "0"], ["slug", "0"], ["updated_at", "2014-09-04 16:48:36.097076"]]
340969
+  (0.0ms) RELEASE SAVEPOINT active_record_1
340970
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" = '0' LIMIT 1
340971
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" IS NULL LIMIT 1
340972
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" = '0' LIMIT 1
340973
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" IS NULL LIMIT 1
340974
+  (0.4ms) rollback transaction
340975
+  (0.0ms) begin transaction
340976
+  (0.0ms) commit transaction
340977
+  (0.0ms) begin transaction
340978
+ DealRedemptions::Company Load (0.1ms) SELECT "deal_redemptions_companies".* FROM "deal_redemptions_companies" ORDER BY "deal_redemptions_companies"."id" ASC LIMIT 1
340979
+  (0.1ms) SAVEPOINT active_record_1
340980
+ SQL (0.2ms) INSERT INTO "deal_redemptions_companies" ("created_at", "name", "slug", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-09-04 16:48:36.110547"], ["name", "0"], ["slug", "0"], ["updated_at", "2014-09-04 16:48:36.110547"]]
340981
+  (0.0ms) RELEASE SAVEPOINT active_record_1
340982
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" IS NULL LIMIT 1
340983
+ DealRedemptions::Company Exists (0.0ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = '0' LIMIT 1
340984
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" IS NULL LIMIT 1
340985
+ DealRedemptions::Company Exists (0.0ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = '0' LIMIT 1
340986
+  (0.3ms) rollback transaction
340987
+  (0.1ms) begin transaction
340988
+  (0.0ms) commit transaction
340989
+  (0.0ms) begin transaction
340990
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" IS NULL LIMIT 1
340991
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" IS NULL LIMIT 1
340992
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" IS NULL LIMIT 1
340993
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" IS NULL LIMIT 1
340994
+  (0.0ms) rollback transaction
340995
+  (0.0ms) begin transaction
340996
+  (0.0ms) commit transaction
340997
+  (0.0ms) begin transaction
340998
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" IS NULL LIMIT 1
340999
+ DealRedemptions::Company Exists (0.0ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" IS NULL LIMIT 1
341000
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" IS NULL LIMIT 1
341001
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" IS NULL LIMIT 1
341002
+  (0.1ms) rollback transaction
341003
+  (0.0ms) begin transaction
341004
+  (0.0ms) commit transaction
341005
+  (0.0ms) begin transaction
341006
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" = 'Groupon' LIMIT 1
341007
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = 'groupon' LIMIT 1
341008
+  (0.0ms) rollback transaction
341009
+  (0.0ms) begin transaction
341010
+  (0.0ms) commit transaction
341011
+  (0.0ms) begin transaction
341012
+  (0.0ms) SAVEPOINT active_record_1
341013
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'testemail9@gmail.com' LIMIT 1
341014
+ Binary data inserted for `string` type on column `password_hash`
341015
+ Binary data inserted for `string` type on column `password_salt`
341016
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:36.204427"], ["email", "testemail9@gmail.com"], ["first_name", "John"], ["id", 11], ["last_login", "2014-09-04 16:48:36.204261"], ["last_name", "Doe"], ["password_hash", "$2a$10$G9PukD3itRfBBanJNoN9E.eODemOwMPNVBgQAQzH/AKIaTfoMfdIy"], ["password_salt", "$2a$10$G9PukD3itRfBBanJNoN9E."], ["updated_at", "2014-09-04 16:48:36.204427"]]
341017
+
341018
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.8ms
341019
+
341020
+ Sent mail to testemail9@gmail.com (5.1ms)
341021
+ Date: Thu, 04 Sep 2014 09:48:36 -0700
341022
+ From: noreply@domain.com
341023
+ To: testemail9@gmail.com
341024
+ Message-ID: <540897e433aca_15b443fecad85a6e0236b0@Allans-MacBook-Pro.local.mail>
341025
+ Subject: New User Confirmation
341026
+ Mime-Version: 1.0
341027
+ Content-Type: text/html;
341028
+ charset=UTF-8
341029
+ Content-Transfer-Encoding: 7bit
341030
+
341031
+ Hi John Doe,
341032
+
341033
+ Below are your login credentials:
341034
+
341035
+ Email: testemail9@gmail.com
341036
+ Password: test123
341037
+
341038
+ Note: If this is not John Doe, please disregard this email.
341039
+  (0.1ms) RELEASE SAVEPOINT active_record_1
341040
+
341041
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.8ms
341042
+  (0.4ms) rollback transaction
341043
+  (0.0ms) begin transaction
341044
+  (0.0ms) commit transaction
341045
+  (0.0ms) begin transaction
341046
+  (0.0ms) SAVEPOINT active_record_1
341047
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'testemail10@gmail.com' LIMIT 1
341048
+ Binary data inserted for `string` type on column `password_hash`
341049
+ Binary data inserted for `string` type on column `password_salt`
341050
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:36.290466"], ["email", "testemail10@gmail.com"], ["first_name", "John"], ["id", 12], ["last_login", "2014-09-04 16:48:36.290300"], ["last_name", "Doe"], ["password_hash", "$2a$10$FLX1dSS2ZDusY3f2mXTLO.3XYP/fsd4JrqEGmm6vZ18b6511hCPlC"], ["password_salt", "$2a$10$FLX1dSS2ZDusY3f2mXTLO."], ["updated_at", "2014-09-04 16:48:36.290466"]]
341051
+
341052
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.5ms
341053
+
341054
+ Sent mail to testemail10@gmail.com (4.9ms)
341055
+ Date: Thu, 04 Sep 2014 09:48:36 -0700
341056
+ From: noreply@domain.com
341057
+ To: testemail10@gmail.com
341058
+ Message-ID: <540897e448951_15b443fecad85a6e023776@Allans-MacBook-Pro.local.mail>
341059
+ Subject: New User Confirmation
341060
+ Mime-Version: 1.0
341061
+ Content-Type: text/html;
341062
+ charset=UTF-8
341063
+ Content-Transfer-Encoding: 7bit
341064
+
341065
+ Hi John Doe,
341066
+
341067
+ Below are your login credentials:
341068
+
341069
+ Email: testemail10@gmail.com
341070
+ Password: test123
341071
+
341072
+ Note: If this is not John Doe, please disregard this email.
341073
+  (0.1ms) RELEASE SAVEPOINT active_record_1
341074
+
341075
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.7ms
341076
+  (0.7ms) rollback transaction
341077
+  (0.1ms) begin transaction
341078
+  (0.0ms) commit transaction
341079
+  (0.0ms) begin transaction
341080
+  (0.0ms) SAVEPOINT active_record_1
341081
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'testemail11@gmail.com' LIMIT 1
341082
+ Binary data inserted for `string` type on column `password_hash`
341083
+ Binary data inserted for `string` type on column `password_salt`
341084
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:36.375637"], ["email", "testemail11@gmail.com"], ["first_name", "John"], ["id", 13], ["last_login", "2014-09-04 16:48:36.375473"], ["last_name", "Doe"], ["password_hash", "$2a$10$m17G2hjqosWZ80cj2XQRBe5z/8YyikbkV9dKhICDrLNcUxkU3XnyC"], ["password_salt", "$2a$10$m17G2hjqosWZ80cj2XQRBe"], ["updated_at", "2014-09-04 16:48:36.375637"]]
341085
+
341086
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.9ms
341087
+
341088
+ Sent mail to testemail11@gmail.com (4.9ms)
341089
+ Date: Thu, 04 Sep 2014 09:48:36 -0700
341090
+ From: noreply@domain.com
341091
+ To: testemail11@gmail.com
341092
+ Message-ID: <540897e45d6d1_15b443fecad85a6e023844@Allans-MacBook-Pro.local.mail>
341093
+ Subject: New User Confirmation
341094
+ Mime-Version: 1.0
341095
+ Content-Type: text/html;
341096
+ charset=UTF-8
341097
+ Content-Transfer-Encoding: 7bit
341098
+
341099
+ Hi John Doe,
341100
+
341101
+ Below are your login credentials:
341102
+
341103
+ Email: testemail11@gmail.com
341104
+ Password: test123
341105
+
341106
+ Note: If this is not John Doe, please disregard this email.
341107
+  (0.1ms) RELEASE SAVEPOINT active_record_1
341108
+
341109
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.8ms
341110
+  (0.7ms) rollback transaction
341111
+  (0.1ms) begin transaction
341112
+  (0.0ms) commit transaction
341113
+  (0.0ms) begin transaction
341114
+  (0.0ms) SAVEPOINT active_record_1
341115
+ SQL (0.3ms) INSERT INTO "deal_redemptions_redeem_codes" ("code", "company_id", "created_at", "product_id", "redemption_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", 123456789], ["company_id", 1], ["created_at", "2014-09-04 16:48:36.395790"], ["product_id", 1], ["redemption_id", 1], ["updated_at", "2014-09-04 16:48:36.395790"]]
341116
+  (0.0ms) RELEASE SAVEPOINT active_record_1
341117
+  (0.0ms) SAVEPOINT active_record_1
341118
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" = 'Groupon' LIMIT 1
341119
+ DealRedemptions::Company Exists (0.0ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = 'groupon' LIMIT 1
341120
+ SQL (0.3ms) INSERT INTO "deal_redemptions_companies" ("created_at", "description", "id", "name", "slug", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:36.398466"], ["description", "Please use the 2nd code, not internal code."], ["id", 1], ["name", "Groupon"], ["slug", "groupon"], ["updated_at", "2014-09-04 16:48:36.398466"], ["url", "http://www.groupon.com"]]
341121
+  (0.0ms) RELEASE SAVEPOINT active_record_1
341122
+  (0.4ms) rollback transaction
341123
+  (0.1ms) begin transaction
341124
+  (0.0ms) commit transaction
341125
+  (0.0ms) begin transaction
341126
+  (0.1ms) SAVEPOINT active_record_1
341127
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
341128
+ Binary data inserted for `string` type on column `password_hash`
341129
+ Binary data inserted for `string` type on column `password_salt`
341130
+ SQL (0.2ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:36.499290"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:36.499114"], ["last_name", "Doe"], ["password_hash", "$2a$10$N6WCACVGys24.xG0rapNqeYK8c.Y5fuCYnCzRwoj/6LLuabzNOnCO"], ["password_salt", "$2a$10$N6WCACVGys24.xG0rapNqe"], ["updated_at", "2014-09-04 16:48:36.499290"]]
341131
+
341132
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.7ms
341133
+
341134
+ Sent mail to johndoe@gmail.com (4.6ms)
341135
+ Date: Thu, 04 Sep 2014 09:48:36 -0700
341136
+ From: noreply@domain.com
341137
+ To: johndoe@gmail.com
341138
+ Message-ID: <540897e47b950_15b443fecad85a6e0239d1@Allans-MacBook-Pro.local.mail>
341139
+ Subject: New User Confirmation
341140
+ Mime-Version: 1.0
341141
+ Content-Type: text/html;
341142
+ charset=UTF-8
341143
+ Content-Transfer-Encoding: 7bit
341144
+
341145
+ Hi John Doe,
341146
+
341147
+ Below are your login credentials:
341148
+
341149
+ Email: johndoe@gmail.com
341150
+ Password: test123
341151
+
341152
+ Note: If this is not John Doe, please disregard this email.
341153
+  (0.1ms) RELEASE SAVEPOINT active_record_1
341154
+ Processing by DealRedemptions::Admin::CompaniesController#edit as HTML
341155
+ Parameters: {"id"=>"100000"}
341156
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
341157
+ DealRedemptions::Company Load (0.0ms) SELECT "deal_redemptions_companies".* FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."id" = ? LIMIT 1 [["id", 100000]]
341158
+ Redirected to http://test.host/deal_redemptions/admin/companies
341159
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
341160
+  (1.8ms) rollback transaction
341161
+  (0.1ms) begin transaction
341162
+  (0.0ms) commit transaction
341163
+  (0.0ms) begin transaction
341164
+  (0.1ms) SAVEPOINT active_record_1
341165
+ DealRedemptions::User Exists (0.2ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
341166
+ Binary data inserted for `string` type on column `password_hash`
341167
+ Binary data inserted for `string` type on column `password_salt`
341168
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:36.586137"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:36.585966"], ["last_name", "Doe"], ["password_hash", "$2a$10$47nzabF6ELbMJUzzs1oN0eq91QNqXvKkQaWLRzIkWqiefgsA5lhg2"], ["password_salt", "$2a$10$47nzabF6ELbMJUzzs1oN0e"], ["updated_at", "2014-09-04 16:48:36.586137"]]
341169
+
341170
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.8ms
341171
+
341172
+ Sent mail to johndoe@gmail.com (4.5ms)
341173
+ Date: Thu, 04 Sep 2014 09:48:36 -0700
341174
+ From: noreply@domain.com
341175
+ To: johndoe@gmail.com
341176
+ Message-ID: <540897e490d7e_15b443fecad85a6e0240ea@Allans-MacBook-Pro.local.mail>
341177
+ Subject: New User Confirmation
341178
+ Mime-Version: 1.0
341179
+ Content-Type: text/html;
341180
+ charset=UTF-8
341181
+ Content-Transfer-Encoding: 7bit
341182
+
341183
+ Hi John Doe,
341184
+
341185
+ Below are your login credentials:
341186
+
341187
+ Email: johndoe@gmail.com
341188
+ Password: test123
341189
+
341190
+ Note: If this is not John Doe, please disregard this email.
341191
+  (0.1ms) RELEASE SAVEPOINT active_record_1
341192
+ Processing by DealRedemptions::Admin::CompaniesController#edit as HTML
341193
+ Parameters: {"id"=>"1"}
341194
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
341195
+ DealRedemptions::Company Load (0.0ms) SELECT "deal_redemptions_companies".* FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."id" = ? LIMIT 1 [["id", 1]]
341196
+ Redirected to http://test.host/deal_redemptions/admin/companies
341197
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
341198
+  (0.6ms) rollback transaction
341199
+  (0.1ms) begin transaction
341200
+  (0.0ms) commit transaction
341201
+  (0.0ms) begin transaction
341202
+  (0.0ms) SAVEPOINT active_record_1
341203
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
341204
+ Binary data inserted for `string` type on column `password_hash`
341205
+ Binary data inserted for `string` type on column `password_salt`
341206
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:36.668073"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:36.667905"], ["last_name", "Doe"], ["password_hash", "$2a$10$pdevCzGBgBNf.7UJ9Pag4.HD.GiIPPy60sqnVhRncbBBQe46f/BIC"], ["password_salt", "$2a$10$pdevCzGBgBNf.7UJ9Pag4."], ["updated_at", "2014-09-04 16:48:36.668073"]]
341207
+
341208
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.8ms
341209
+
341210
+ Sent mail to johndoe@gmail.com (4.7ms)
341211
+ Date: Thu, 04 Sep 2014 09:48:36 -0700
341212
+ From: noreply@domain.com
341213
+ To: johndoe@gmail.com
341214
+ Message-ID: <540897e4a4d01_15b443fecad85a6e02411d@Allans-MacBook-Pro.local.mail>
341215
+ Subject: New User Confirmation
341216
+ Mime-Version: 1.0
341217
+ Content-Type: text/html;
341218
+ charset=UTF-8
341219
+ Content-Transfer-Encoding: 7bit
341220
+
341221
+ Hi John Doe,
341222
+
341223
+ Below are your login credentials:
341224
+
341225
+ Email: johndoe@gmail.com
341226
+ Password: test123
341227
+
341228
+ Note: If this is not John Doe, please disregard this email.
341229
+  (0.1ms) RELEASE SAVEPOINT active_record_1
341230
+ Processing by DealRedemptions::Admin::CompaniesController#new as HTML
341231
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
341232
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)
341233
+  (0.4ms) rollback transaction
341234
+  (0.1ms) begin transaction
341235
+  (0.0ms) commit transaction
341236
+  (0.0ms) begin transaction
341237
+  (0.1ms) SAVEPOINT active_record_1
341238
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
341239
+ Binary data inserted for `string` type on column `password_hash`
341240
+ Binary data inserted for `string` type on column `password_salt`
341241
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:36.759037"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:36.758791"], ["last_name", "Doe"], ["password_hash", "$2a$10$Canc2FtoX9iYBqji.6D5cuMrUE6YvvYQofmkyNi0h8gRQ/1LTDF4y"], ["password_salt", "$2a$10$Canc2FtoX9iYBqji.6D5cu"], ["updated_at", "2014-09-04 16:48:36.759037"]]
341242
+
341243
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 5.0ms
341244
+
341245
+ Sent mail to johndoe@gmail.com (4.7ms)
341246
+ Date: Thu, 04 Sep 2014 09:48:36 -0700
341247
+ From: noreply@domain.com
341248
+ To: johndoe@gmail.com
341249
+ Message-ID: <540897e4bb21e_15b443fecad85a6e024213@Allans-MacBook-Pro.local.mail>
341250
+ Subject: New User Confirmation
341251
+ Mime-Version: 1.0
341252
+ Content-Type: text/html;
341253
+ charset=UTF-8
341254
+ Content-Transfer-Encoding: 7bit
341255
+
341256
+ Hi John Doe,
341257
+
341258
+ Below are your login credentials:
341259
+
341260
+ Email: johndoe@gmail.com
341261
+ Password: test123
341262
+
341263
+ Note: If this is not John Doe, please disregard this email.
341264
+  (0.1ms) RELEASE SAVEPOINT active_record_1
341265
+  (0.0ms) SAVEPOINT active_record_1
341266
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" = 'Groupon' LIMIT 1
341267
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = 'groupon' LIMIT 1
341268
+ SQL (0.3ms) INSERT INTO "deal_redemptions_companies" ("created_at", "description", "id", "name", "slug", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:36.772920"], ["description", "Please use the 2nd code, not internal code."], ["id", 1], ["name", "Groupon"], ["slug", "groupon"], ["updated_at", "2014-09-04 16:48:36.772920"], ["url", "http://www.groupon.com"]]
341269
+  (0.0ms) RELEASE SAVEPOINT active_record_1
341270
+ Processing by DealRedemptions::Admin::CompaniesController#destroy as HTML
341271
+ Parameters: {"id"=>"1"}
341272
+ DealRedemptions::User Load (0.0ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
341273
+ DealRedemptions::Company Load (0.0ms) SELECT "deal_redemptions_companies".* FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."id" = ? LIMIT 1 [["id", 1]]
341274
+  (0.0ms) SAVEPOINT active_record_1
341275
+ SQL (0.1ms) DELETE FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."id" = ? [["id", 1]]
341276
+  (0.0ms) RELEASE SAVEPOINT active_record_1
341277
+ Redirected to http://test.host/deal_redemptions/admin/companies
341278
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
341279
+  (0.4ms) rollback transaction
341280
+  (0.0ms) begin transaction
341281
+  (0.0ms) commit transaction
341282
+  (0.0ms) begin transaction
341283
+  (0.0ms) SAVEPOINT active_record_1
341284
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
341285
+ Binary data inserted for `string` type on column `password_hash`
341286
+ Binary data inserted for `string` type on column `password_salt`
341287
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:36.844667"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:36.844512"], ["last_name", "Doe"], ["password_hash", "$2a$10$qPFVKI0DW4eJOMam/Ko6YOr0kr6i1FiSUrCqHl42/GfHjOXroKfBa"], ["password_salt", "$2a$10$qPFVKI0DW4eJOMam/Ko6YO"], ["updated_at", "2014-09-04 16:48:36.844667"]]
341288
+
341289
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 5.0ms
341290
+
341291
+ Sent mail to johndoe@gmail.com (5.0ms)
341292
+ Date: Thu, 04 Sep 2014 09:48:36 -0700
341293
+ From: noreply@domain.com
341294
+ To: johndoe@gmail.com
341295
+ Message-ID: <540897e4cff79_15b443fecad85a6e024350@Allans-MacBook-Pro.local.mail>
341296
+ Subject: New User Confirmation
341297
+ Mime-Version: 1.0
341298
+ Content-Type: text/html;
341299
+ charset=UTF-8
341300
+ Content-Transfer-Encoding: 7bit
341301
+
341302
+ Hi John Doe,
341303
+
341304
+ Below are your login credentials:
341305
+
341306
+ Email: johndoe@gmail.com
341307
+ Password: test123
341308
+
341309
+ Note: If this is not John Doe, please disregard this email.
341310
+  (0.1ms) RELEASE SAVEPOINT active_record_1
341311
+  (0.0ms) SAVEPOINT active_record_1
341312
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" = 'Groupon' LIMIT 1
341313
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = 'groupon' LIMIT 1
341314
+ SQL (0.3ms) INSERT INTO "deal_redemptions_companies" ("created_at", "description", "id", "name", "slug", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:36.858826"], ["description", "Please use the 2nd code, not internal code."], ["id", 1], ["name", "Groupon"], ["slug", "groupon"], ["updated_at", "2014-09-04 16:48:36.858826"], ["url", "http://www.groupon.com"]]
341315
+  (0.0ms) RELEASE SAVEPOINT active_record_1
341316
+ Processing by DealRedemptions::Admin::CompaniesController#destroy as HTML
341317
+ Parameters: {"id"=>"1"}
341318
+ DealRedemptions::User Load (0.0ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
341319
+ DealRedemptions::Company Load (0.1ms) SELECT "deal_redemptions_companies".* FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."id" = ? LIMIT 1 [["id", 1]]
341320
+  (0.0ms) SAVEPOINT active_record_1
341321
+ SQL (0.0ms) DELETE FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."id" = ? [["id", 1]]
341322
+  (0.0ms) RELEASE SAVEPOINT active_record_1
341323
+ Redirected to http://test.host/deal_redemptions/admin/companies
341324
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
341325
+  (0.7ms) rollback transaction
341326
+  (0.1ms) begin transaction
341327
+  (0.0ms) commit transaction
341328
+  (0.0ms) begin transaction
341329
+  (0.0ms) SAVEPOINT active_record_1
341330
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
341331
+ Binary data inserted for `string` type on column `password_hash`
341332
+ Binary data inserted for `string` type on column `password_salt`
341333
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:36.931312"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:36.931143"], ["last_name", "Doe"], ["password_hash", "$2a$10$AcNoy7NljFxMwB6McOeQVOzE0TrwwFpjJ4FDH.bNmozDvq5aC2sjS"], ["password_salt", "$2a$10$AcNoy7NljFxMwB6McOeQVO"], ["updated_at", "2014-09-04 16:48:36.931312"]]
341334
+
341335
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 5.0ms
341336
+
341337
+ Sent mail to johndoe@gmail.com (5.0ms)
341338
+ Date: Thu, 04 Sep 2014 09:48:36 -0700
341339
+ From: noreply@domain.com
341340
+ To: johndoe@gmail.com
341341
+ Message-ID: <540897e4e529e_15b443fecad85a6e024453@Allans-MacBook-Pro.local.mail>
341342
+ Subject: New User Confirmation
341343
+ Mime-Version: 1.0
341344
+ Content-Type: text/html;
341345
+ charset=UTF-8
341346
+ Content-Transfer-Encoding: 7bit
341347
+
341348
+ Hi John Doe,
341349
+
341350
+ Below are your login credentials:
341351
+
341352
+ Email: johndoe@gmail.com
341353
+ Password: test123
341354
+
341355
+ Note: If this is not John Doe, please disregard this email.
341356
+  (0.1ms) RELEASE SAVEPOINT active_record_1
341357
+ Processing by DealRedemptions::Admin::CompaniesController#create as HTML
341358
+ Parameters: {"company"=>{"id"=>"1", "name"=>"Groupon", "description"=>"Please use the 2nd code, not internal code.", "url"=>"http://www.groupon.com", "slug"=>"groupon", "active"=>"1"}}
341359
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
341360
+ Unpermitted parameters: id
341361
+  (0.0ms) SAVEPOINT active_record_1
341362
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" = 'Groupon' LIMIT 1
341363
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = 'groupon' LIMIT 1
341364
+ SQL (0.3ms) INSERT INTO "deal_redemptions_companies" ("created_at", "description", "name", "slug", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:36.948558"], ["description", "Please use the 2nd code, not internal code."], ["name", "Groupon"], ["slug", "groupon"], ["updated_at", "2014-09-04 16:48:36.948558"], ["url", "http://www.groupon.com"]]
341365
+  (0.0ms) RELEASE SAVEPOINT active_record_1
341366
+ Redirected to http://test.host/deal_redemptions/admin/companies
341367
+ Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
341368
+  (0.7ms) rollback transaction
341369
+  (0.1ms) begin transaction
341370
+  (0.0ms) commit transaction
341371
+  (0.0ms) begin transaction
341372
+  (0.0ms) SAVEPOINT active_record_1
341373
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
341374
+ Binary data inserted for `string` type on column `password_hash`
341375
+ Binary data inserted for `string` type on column `password_salt`
341376
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:37.018040"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:37.017819"], ["last_name", "Doe"], ["password_hash", "$2a$10$45FsYg9VjGGQtn1dsyaPPOgWpvceVnW2jTxjnZMBsJWVCz/73N3Yi"], ["password_salt", "$2a$10$45FsYg9VjGGQtn1dsyaPPO"], ["updated_at", "2014-09-04 16:48:37.018040"]]
341377
+
341378
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 36.1ms
341379
+
341380
+ Sent mail to johndoe@gmail.com (4.6ms)
341381
+ Date: Thu, 04 Sep 2014 09:48:37 -0700
341382
+ From: noreply@domain.com
341383
+ To: johndoe@gmail.com
341384
+ Message-ID: <540897e5dcfd_15b443fecad85a6e024513@Allans-MacBook-Pro.local.mail>
341385
+ Subject: New User Confirmation
341386
+ Mime-Version: 1.0
341387
+ Content-Type: text/html;
341388
+ charset=UTF-8
341389
+ Content-Transfer-Encoding: 7bit
341390
+
341391
+ Hi John Doe,
341392
+
341393
+ Below are your login credentials:
341394
+
341395
+ Email: johndoe@gmail.com
341396
+ Password: test123
341397
+
341398
+ Note: If this is not John Doe, please disregard this email.
341399
+  (0.1ms) RELEASE SAVEPOINT active_record_1
341400
+ Processing by DealRedemptions::Admin::CompaniesController#create as HTML
341401
+ Parameters: {"company"=>{"id"=>"1", "name"=>"", "description"=>"Please use the 2nd code, not internal code.", "url"=>"http://www.groupon.com", "slug"=>"groupon", "active"=>"1"}}
341402
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
341403
+ Unpermitted parameters: id
341404
+  (0.0ms) SAVEPOINT active_record_1
341405
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" = '' LIMIT 1
341406
+ DealRedemptions::Company Exists (0.0ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = 'groupon' LIMIT 1
341407
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
341408
+ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.2ms)
341409
+  (1.8ms) rollback transaction
341410
+  (0.1ms) begin transaction
341411
+  (0.0ms) commit transaction
341412
+  (0.0ms) begin transaction
341413
+  (0.1ms) SAVEPOINT active_record_1
341414
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
341415
+ Binary data inserted for `string` type on column `password_hash`
341416
+ Binary data inserted for `string` type on column `password_salt`
341417
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:37.139229"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:37.139061"], ["last_name", "Doe"], ["password_hash", "$2a$10$5LfmtSfIULqvWXbCyZQ33eIa/a6KT0DN0QGQALQHcOt7sH2OEsEse"], ["password_salt", "$2a$10$5LfmtSfIULqvWXbCyZQ33e"], ["updated_at", "2014-09-04 16:48:37.139229"]]
341418
+
341419
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.9ms
341420
+
341421
+ Sent mail to johndoe@gmail.com (4.5ms)
341422
+ Date: Thu, 04 Sep 2014 09:48:37 -0700
341423
+ From: noreply@domain.com
341424
+ To: johndoe@gmail.com
341425
+ Message-ID: <540897e523bce_15b443fecad85a6e024641@Allans-MacBook-Pro.local.mail>
341426
+ Subject: New User Confirmation
341427
+ Mime-Version: 1.0
341428
+ Content-Type: text/html;
341429
+ charset=UTF-8
341430
+ Content-Transfer-Encoding: 7bit
341431
+
341432
+ Hi John Doe,
341433
+
341434
+ Below are your login credentials:
341435
+
341436
+ Email: johndoe@gmail.com
341437
+ Password: test123
341438
+
341439
+ Note: If this is not John Doe, please disregard this email.
341440
+  (0.1ms) RELEASE SAVEPOINT active_record_1
341441
+ Processing by DealRedemptions::Admin::CompaniesController#create as HTML
341442
+ Parameters: {"company"=>{"id"=>"1", "name"=>"Groupon", "description"=>"Please use the 2nd code, not internal code.", "url"=>"http://www.groupon.com", "slug"=>"groupon", "active"=>"1"}}
341443
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
341444
+ Unpermitted parameters: id
341445
+  (0.0ms) SAVEPOINT active_record_1
341446
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" = 'Groupon' LIMIT 1
341447
+ DealRedemptions::Company Exists (0.0ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = 'groupon' LIMIT 1
341448
+ SQL (0.3ms) INSERT INTO "deal_redemptions_companies" ("created_at", "description", "name", "slug", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:37.155525"], ["description", "Please use the 2nd code, not internal code."], ["name", "Groupon"], ["slug", "groupon"], ["updated_at", "2014-09-04 16:48:37.155525"], ["url", "http://www.groupon.com"]]
341449
+  (0.0ms) RELEASE SAVEPOINT active_record_1
341450
+ Redirected to http://test.host/deal_redemptions/admin/companies
341451
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
341452
+  (0.7ms) rollback transaction
341453
+  (0.0ms) begin transaction
341454
+  (0.0ms) commit transaction
341455
+  (0.0ms) begin transaction
341456
+  (0.0ms) SAVEPOINT active_record_1
341457
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
341458
+ Binary data inserted for `string` type on column `password_hash`
341459
+ Binary data inserted for `string` type on column `password_salt`
341460
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:37.224641"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:37.224474"], ["last_name", "Doe"], ["password_hash", "$2a$10$Nn9NNr4YuwIETGwNtmPwC.NDiyAKWJMfdvYlRXBE3o6rwZPT2TPwK"], ["password_salt", "$2a$10$Nn9NNr4YuwIETGwNtmPwC."], ["updated_at", "2014-09-04 16:48:37.224641"]]
341461
+
341462
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.6ms
341463
+
341464
+ Sent mail to johndoe@gmail.com (4.6ms)
341465
+ Date: Thu, 04 Sep 2014 09:48:37 -0700
341466
+ From: noreply@domain.com
341467
+ To: johndoe@gmail.com
341468
+ Message-ID: <540897e538825_15b443fecad85a6e02479a@Allans-MacBook-Pro.local.mail>
341469
+ Subject: New User Confirmation
341470
+ Mime-Version: 1.0
341471
+ Content-Type: text/html;
341472
+ charset=UTF-8
341473
+ Content-Transfer-Encoding: 7bit
341474
+
341475
+ Hi John Doe,
341476
+
341477
+ Below are your login credentials:
341478
+
341479
+ Email: johndoe@gmail.com
341480
+ Password: test123
341481
+
341482
+ Note: If this is not John Doe, please disregard this email.
341483
+  (0.1ms) RELEASE SAVEPOINT active_record_1
341484
+ Processing by DealRedemptions::Admin::CompaniesController#index as HTML
341485
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
341486
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)
341487
+  (0.4ms) rollback transaction
341488
+  (0.0ms) begin transaction
341489
+  (0.0ms) commit transaction
341490
+  (0.0ms) begin transaction
341491
+  (0.0ms) SAVEPOINT active_record_1
341492
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
341493
+ Binary data inserted for `string` type on column `password_hash`
341494
+ Binary data inserted for `string` type on column `password_salt`
341495
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:37.307639"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:37.307470"], ["last_name", "Doe"], ["password_hash", "$2a$10$dDprjccYPvi2MyNMMbTlmOY48IbNNYpgQZFvA.DHHfxHBCachp4oS"], ["password_salt", "$2a$10$dDprjccYPvi2MyNMMbTlmO"], ["updated_at", "2014-09-04 16:48:37.307639"]]
341496
+
341497
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.6ms
341498
+
341499
+ Sent mail to johndoe@gmail.com (4.5ms)
341500
+ Date: Thu, 04 Sep 2014 09:48:37 -0700
341501
+ From: noreply@domain.com
341502
+ To: johndoe@gmail.com
341503
+ Message-ID: <540897e54cc7e_15b443fecad85a6e0248e9@Allans-MacBook-Pro.local.mail>
341504
+ Subject: New User Confirmation
341505
+ Mime-Version: 1.0
341506
+ Content-Type: text/html;
341507
+ charset=UTF-8
341508
+ Content-Transfer-Encoding: 7bit
341509
+
341510
+ Hi John Doe,
341511
+
341512
+ Below are your login credentials:
341513
+
341514
+ Email: johndoe@gmail.com
341515
+ Password: test123
341516
+
341517
+ Note: If this is not John Doe, please disregard this email.
341518
+  (0.1ms) RELEASE SAVEPOINT active_record_1
341519
+ Processing by DealRedemptions::Admin::CompaniesController#index as HTML
341520
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
341521
+ Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms)
341522
+  (0.4ms) rollback transaction
341523
+  (0.1ms) begin transaction
341524
+  (0.0ms) commit transaction
341525
+  (0.0ms) begin transaction
341526
+  (0.1ms) SAVEPOINT active_record_1
341527
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
341528
+ Binary data inserted for `string` type on column `password_hash`
341529
+ Binary data inserted for `string` type on column `password_salt`
341530
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:37.389675"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:37.389515"], ["last_name", "Doe"], ["password_hash", "$2a$10$QmEz3T945iytgV00bCTprONZkOgpJoL9hNdbb6khMj2hOa3V8iN.2"], ["password_salt", "$2a$10$QmEz3T945iytgV00bCTprO"], ["updated_at", "2014-09-04 16:48:37.389675"]]
341531
+
341532
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.7ms
341533
+
341534
+ Sent mail to johndoe@gmail.com (4.6ms)
341535
+ Date: Thu, 04 Sep 2014 09:48:37 -0700
341536
+ From: noreply@domain.com
341537
+ To: johndoe@gmail.com
341538
+ Message-ID: <540897e560d04_15b443fecad85a6e02494b@Allans-MacBook-Pro.local.mail>
341539
+ Subject: New User Confirmation
341540
+ Mime-Version: 1.0
341541
+ Content-Type: text/html;
341542
+ charset=UTF-8
341543
+ Content-Transfer-Encoding: 7bit
341544
+
341545
+ Hi John Doe,
341546
+
341547
+ Below are your login credentials:
341548
+
341549
+ Email: johndoe@gmail.com
341550
+ Password: test123
341551
+
341552
+ Note: If this is not John Doe, please disregard this email.
341553
+  (0.1ms) RELEASE SAVEPOINT active_record_1
341554
+  (0.0ms) SAVEPOINT active_record_1
341555
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" = 'Groupon' LIMIT 1
341556
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = 'groupon' LIMIT 1
341557
+ SQL (0.3ms) INSERT INTO "deal_redemptions_companies" ("created_at", "description", "id", "name", "slug", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:37.402850"], ["description", "Please use the 2nd code, not internal code."], ["id", 1], ["name", "Groupon"], ["slug", "groupon"], ["updated_at", "2014-09-04 16:48:37.402850"], ["url", "http://www.groupon.com"]]
341558
+  (0.0ms) RELEASE SAVEPOINT active_record_1
341559
+ Processing by DealRedemptions::Admin::CompaniesController#update as HTML
341560
+ Parameters: {"company"=>{"id"=>"1", "name"=>"Groupon", "description"=>"Please use the 2nd code, not internal code.", "url"=>"http://www.groupon.com", "slug"=>"groupon", "active"=>"1"}, "id"=>"1"}
341561
+ DealRedemptions::User Load (0.0ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
341562
+ DealRedemptions::Company Load (0.0ms) SELECT "deal_redemptions_companies".* FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."id" = ? LIMIT 1 [["id", 1]]
341563
+ Unpermitted parameters: id
341564
+  (0.0ms) SAVEPOINT active_record_1
341565
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE ("deal_redemptions_companies"."name" = 'Groupon' AND "deal_redemptions_companies"."id" != 1) LIMIT 1
341566
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE ("deal_redemptions_companies"."slug" = 'groupon' AND "deal_redemptions_companies"."id" != 1) LIMIT 1
341567
+  (0.0ms) RELEASE SAVEPOINT active_record_1
341568
+ Redirected to http://test.host/deal_redemptions/admin/companies
341569
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
341570
+  (0.8ms) rollback transaction
341571
+  (0.1ms) begin transaction
341572
+  (0.0ms) commit transaction
341573
+  (0.0ms) begin transaction
341574
+  (0.1ms) SAVEPOINT active_record_1
341575
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
341576
+ Binary data inserted for `string` type on column `password_hash`
341577
+ Binary data inserted for `string` type on column `password_salt`
341578
+ SQL (0.2ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:37.480752"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:37.480600"], ["last_name", "Doe"], ["password_hash", "$2a$10$3RIz0JjcsoETERaujOh3vuOJYp9RzKLVlOSVBHEpSNughJduk3TLG"], ["password_salt", "$2a$10$3RIz0JjcsoETERaujOh3vu"], ["updated_at", "2014-09-04 16:48:37.480752"]]
341579
+
341580
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.8ms
341581
+
341582
+ Sent mail to johndoe@gmail.com (5.1ms)
341583
+ Date: Thu, 04 Sep 2014 09:48:37 -0700
341584
+ From: noreply@domain.com
341585
+ To: johndoe@gmail.com
341586
+ Message-ID: <540897e5771f9_15b443fecad85a6e02507a@Allans-MacBook-Pro.local.mail>
341587
+ Subject: New User Confirmation
341588
+ Mime-Version: 1.0
341589
+ Content-Type: text/html;
341590
+ charset=UTF-8
341591
+ Content-Transfer-Encoding: 7bit
341592
+
341593
+ Hi John Doe,
341594
+
341595
+ Below are your login credentials:
341596
+
341597
+ Email: johndoe@gmail.com
341598
+ Password: test123
341599
+
341600
+ Note: If this is not John Doe, please disregard this email.
341601
+  (0.1ms) RELEASE SAVEPOINT active_record_1
341602
+  (0.0ms) SAVEPOINT active_record_1
341603
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" = 'Groupon' LIMIT 1
341604
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = 'groupon' LIMIT 1
341605
+ SQL (0.3ms) INSERT INTO "deal_redemptions_companies" ("created_at", "description", "id", "name", "slug", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:37.494774"], ["description", "Please use the 2nd code, not internal code."], ["id", 1], ["name", "Groupon"], ["slug", "groupon"], ["updated_at", "2014-09-04 16:48:37.494774"], ["url", "http://www.groupon.com"]]
341606
+  (0.0ms) RELEASE SAVEPOINT active_record_1
341607
+ Processing by DealRedemptions::Admin::CompaniesController#update as HTML
341608
+ Parameters: {"company"=>{"id"=>"1", "name"=>"", "description"=>"Please use the 2nd code, not internal code.", "url"=>"http://www.groupon.com", "slug"=>"groupon", "active"=>"1"}, "id"=>"1"}
341609
+ DealRedemptions::User Load (0.1ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
341610
+ DealRedemptions::Company Load (0.0ms) SELECT "deal_redemptions_companies".* FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."id" = ? LIMIT 1 [["id", 1]]
341611
+ Unpermitted parameters: id
341612
+  (0.1ms) SAVEPOINT active_record_1
341613
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE ("deal_redemptions_companies"."name" = '' AND "deal_redemptions_companies"."id" != 1) LIMIT 1
341614
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE ("deal_redemptions_companies"."slug" = 'groupon' AND "deal_redemptions_companies"."id" != 1) LIMIT 1
341615
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
341616
+ Completed 200 OK in 8ms (Views: 3.5ms | ActiveRecord: 0.4ms)
341617
+  (0.4ms) rollback transaction
341618
+  (0.0ms) begin transaction
341619
+  (0.1ms) commit transaction
341620
+  (0.0ms) begin transaction
341621
+  (0.1ms) SAVEPOINT active_record_1
341622
+ DealRedemptions::User Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."email" = 'johndoe@gmail.com' LIMIT 1
341623
+ Binary data inserted for `string` type on column `password_hash`
341624
+ Binary data inserted for `string` type on column `password_salt`
341625
+ SQL (0.3ms) INSERT INTO "deal_redemptions_users" ("created_at", "email", "first_name", "id", "last_login", "last_name", "password_hash", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:37.609112"], ["email", "johndoe@gmail.com"], ["first_name", "John"], ["id", 1], ["last_login", "2014-09-04 16:48:37.608946"], ["last_name", "Doe"], ["password_hash", "$2a$10$WAtnHVW1.5RJ7Q2JlomGp.XnpJFkT5Rl05gVIo0ubVKdl.JWp7tbK"], ["password_salt", "$2a$10$WAtnHVW1.5RJ7Q2JlomGp."], ["updated_at", "2014-09-04 16:48:37.609112"]]
341626
+
341627
+ DealRedemptions::AdminUserMailer#new_confirmation: processed outbound mail in 4.5ms
341628
+
341629
+ Sent mail to johndoe@gmail.com (4.7ms)
341630
+ Date: Thu, 04 Sep 2014 09:48:37 -0700
341631
+ From: noreply@domain.com
341632
+ To: johndoe@gmail.com
341633
+ Message-ID: <540897e596542_15b443fecad85a6e0251ad@Allans-MacBook-Pro.local.mail>
341634
+ Subject: New User Confirmation
341635
+ Mime-Version: 1.0
341636
+ Content-Type: text/html;
341637
+ charset=UTF-8
341638
+ Content-Transfer-Encoding: 7bit
341639
+
341640
+ Hi John Doe,
341641
+
341642
+ Below are your login credentials:
341643
+
341644
+ Email: johndoe@gmail.com
341645
+ Password: test123
341646
+
341647
+ Note: If this is not John Doe, please disregard this email.
341648
+  (0.1ms) RELEASE SAVEPOINT active_record_1
341649
+  (0.0ms) SAVEPOINT active_record_1
341650
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."name" = 'Groupon' LIMIT 1
341651
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."slug" = 'groupon' LIMIT 1
341652
+ SQL (0.3ms) INSERT INTO "deal_redemptions_companies" ("created_at", "description", "id", "name", "slug", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-09-04 16:48:37.622251"], ["description", "Please use the 2nd code, not internal code."], ["id", 1], ["name", "Groupon"], ["slug", "groupon"], ["updated_at", "2014-09-04 16:48:37.622251"], ["url", "http://www.groupon.com"]]
341653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
341654
+ Processing by DealRedemptions::Admin::CompaniesController#update as HTML
341655
+ Parameters: {"company"=>{"id"=>"1", "name"=>"Groupon", "description"=>"Please use the 2nd code, not internal code.", "url"=>"http://www.groupon.com", "slug"=>"groupon", "active"=>"1"}, "id"=>"1"}
341656
+ DealRedemptions::User Load (0.0ms) SELECT "deal_redemptions_users".* FROM "deal_redemptions_users" WHERE "deal_redemptions_users"."id" = ? LIMIT 1 [["id", 1]]
341657
+ DealRedemptions::Company Load (0.0ms) SELECT "deal_redemptions_companies".* FROM "deal_redemptions_companies" WHERE "deal_redemptions_companies"."id" = ? LIMIT 1 [["id", 1]]
341658
+ Unpermitted parameters: id
341659
+  (0.0ms) SAVEPOINT active_record_1
341660
+ DealRedemptions::Company Exists (0.1ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE ("deal_redemptions_companies"."name" = 'Groupon' AND "deal_redemptions_companies"."id" != 1) LIMIT 1
341661
+ DealRedemptions::Company Exists (0.0ms) SELECT 1 AS one FROM "deal_redemptions_companies" WHERE ("deal_redemptions_companies"."slug" = 'groupon' AND "deal_redemptions_companies"."id" != 1) LIMIT 1
341662
+  (0.0ms) RELEASE SAVEPOINT active_record_1
341663
+ Redirected to http://test.host/deal_redemptions/admin/companies
341664
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
341665
+  (0.7ms) rollback transaction