active_record-resource 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +34 -0
  5. data/lib/active_record/resource/callbacks.rb +43 -0
  6. data/lib/active_record/resource/version.rb +5 -0
  7. data/lib/active_record-resource.rb +15 -0
  8. data/lib/tasks/active_record-resource_tasks.rake +4 -0
  9. data/test/active_record-resource_test.rb +7 -0
  10. data/test/dummy/README.rdoc +28 -0
  11. data/test/dummy/Rakefile +6 -0
  12. data/test/dummy/app/assets/javascripts/application.js +13 -0
  13. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  14. data/test/dummy/app/controllers/application_controller.rb +5 -0
  15. data/test/dummy/app/helpers/application_helper.rb +2 -0
  16. data/test/dummy/app/models/account.rb +9 -0
  17. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  18. data/test/dummy/bin/bundle +3 -0
  19. data/test/dummy/bin/rails +4 -0
  20. data/test/dummy/bin/rake +4 -0
  21. data/test/dummy/bin/setup +29 -0
  22. data/test/dummy/config/application.rb +26 -0
  23. data/test/dummy/config/boot.rb +5 -0
  24. data/test/dummy/config/database.yml +25 -0
  25. data/test/dummy/config/environment.rb +5 -0
  26. data/test/dummy/config/environments/development.rb +41 -0
  27. data/test/dummy/config/environments/production.rb +79 -0
  28. data/test/dummy/config/environments/test.rb +42 -0
  29. data/test/dummy/config/initializers/assets.rb +11 -0
  30. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  31. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  32. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  33. data/test/dummy/config/initializers/inflections.rb +16 -0
  34. data/test/dummy/config/initializers/mime_types.rb +4 -0
  35. data/test/dummy/config/initializers/session_store.rb +3 -0
  36. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  37. data/test/dummy/config/locales/en.yml +23 -0
  38. data/test/dummy/config/routes.rb +56 -0
  39. data/test/dummy/config/secrets.yml +22 -0
  40. data/test/dummy/config.ru +4 -0
  41. data/test/dummy/db/development.sqlite3 +0 -0
  42. data/test/dummy/db/migrate/20160223204747_create_accounts.rb +9 -0
  43. data/test/dummy/db/schema.rb +22 -0
  44. data/test/dummy/db/test.sqlite3 +0 -0
  45. data/test/dummy/log/development.log +27 -0
  46. data/test/dummy/log/test.log +335 -0
  47. data/test/dummy/public/404.html +67 -0
  48. data/test/dummy/public/422.html +67 -0
  49. data/test/dummy/public/500.html +66 -0
  50. data/test/dummy/public/favicon.ico +0 -0
  51. data/test/dummy/test/models/account_test.rb +16 -0
  52. data/test/test_helper.rb +19 -0
  53. metadata +210 -0
@@ -0,0 +1,56 @@
1
+ Rails.application.routes.draw do
2
+ # The priority is based upon order of creation: first created -> highest priority.
3
+ # See how all your routes lay out with "rake routes".
4
+
5
+ # You can have the root of your site routed with "root"
6
+ # root 'welcome#index'
7
+
8
+ # Example of regular route:
9
+ # get 'products/:id' => 'catalog#view'
10
+
11
+ # Example of named route that can be invoked with purchase_url(id: product.id)
12
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
13
+
14
+ # Example resource route (maps HTTP verbs to controller actions automatically):
15
+ # resources :products
16
+
17
+ # Example resource route with options:
18
+ # resources :products do
19
+ # member do
20
+ # get 'short'
21
+ # post 'toggle'
22
+ # end
23
+ #
24
+ # collection do
25
+ # get 'sold'
26
+ # end
27
+ # end
28
+
29
+ # Example resource route with sub-resources:
30
+ # resources :products do
31
+ # resources :comments, :sales
32
+ # resource :seller
33
+ # end
34
+
35
+ # Example resource route with more complex sub-resources:
36
+ # resources :products do
37
+ # resources :comments
38
+ # resources :sales do
39
+ # get 'recent', on: :collection
40
+ # end
41
+ # end
42
+
43
+ # Example resource route with concerns:
44
+ # concern :toggleable do
45
+ # post 'toggle'
46
+ # end
47
+ # resources :posts, concerns: :toggleable
48
+ # resources :photos, concerns: :toggleable
49
+
50
+ # Example resource route within a namespace:
51
+ # namespace :admin do
52
+ # # Directs /admin/products/* to Admin::ProductsController
53
+ # # (app/controllers/admin/products_controller.rb)
54
+ # resources :products
55
+ # end
56
+ end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: a669ac8770b4b5c130fc12ebdff79241c4f95149c1f1ace45dcee9db64ec7fb5174a2e19ed1c2790da8b49e8f7917aab777f2f47bf2bf3416963baa870fe03ae
15
+
16
+ test:
17
+ secret_key_base: a4a57095be5e893e3cee33f68b42c8619f21069808c3d799a61bd6bc301f94f990a6bc9ccfaa3ad0f11f8fe1d5227452682eadd566f26503a29d538ba26d34c1
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application
Binary file
@@ -0,0 +1,9 @@
1
+ class CreateAccounts < ActiveRecord::Migration
2
+ def change
3
+ create_table :accounts do |t|
4
+ t.string :number
5
+
6
+ t.timestamps null: false
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,22 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20160223204747) do
15
+
16
+ create_table "accounts", force: :cascade do |t|
17
+ t.string "number"
18
+ t.datetime "created_at", null: false
19
+ t.datetime "updated_at", null: false
20
+ end
21
+
22
+ end
Binary file
@@ -0,0 +1,27 @@
1
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
+  (0.1ms) select sqlite_version(*)
3
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ Migrating to CreateAccounts (20160223204747)
6
+  (0.1ms) begin transaction
7
+  (0.3ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
8
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160223204747"]]
9
+  (0.7ms) commit transaction
10
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
11
+  (0.1ms) begin transaction
12
+  (0.0ms) rollback transaction
13
+  (0.1ms) begin transaction
14
+  (0.0ms) rollback transaction
15
+  (0.0ms) begin transaction
16
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-23 21:21:54.474366"], ["updated_at", "2016-02-23 21:21:54.474366"]]
17
+  (1.4ms) commit transaction
18
+  (0.0ms) begin transaction
19
+  (0.1ms) rollback transaction
20
+  (0.1ms) begin transaction
21
+  (0.0ms) rollback transaction
22
+  (0.1ms) begin transaction
23
+  (0.1ms) rollback transaction
24
+  (0.0ms) begin transaction
25
+  (0.0ms) rollback transaction
26
+  (0.1ms) begin transaction
27
+  (0.0ms) rollback transaction
@@ -0,0 +1,335 @@
1
+  (0.1ms) begin transaction
2
+ --------------------------------------
3
+ ActiveRecord::ResourceTest: test_truth
4
+ --------------------------------------
5
+  (0.0ms) rollback transaction
6
+  (0.1ms) begin transaction
7
+ --------------------------------------
8
+ ActiveRecord::ResourceTest: test_truth
9
+ --------------------------------------
10
+  (0.1ms) rollback transaction
11
+  (0.1ms) begin transaction
12
+ --------------------------------------
13
+ ActiveRecord::ResourceTest: test_truth
14
+ --------------------------------------
15
+  (0.0ms) rollback transaction
16
+  (0.1ms) begin transaction
17
+ --------------------------------------
18
+ ActiveRecord::ResourceTest: test_truth
19
+ --------------------------------------
20
+  (0.0ms) rollback transaction
21
+  (0.1ms) begin transaction
22
+ --------------------------------------
23
+ ActiveRecord::ResourceTest: test_truth
24
+ --------------------------------------
25
+  (0.0ms) rollback transaction
26
+  (0.1ms) begin transaction
27
+ --------------------------------------
28
+ ActiveRecord::ResourceTest: test_truth
29
+ --------------------------------------
30
+  (0.0ms) rollback transaction
31
+  (0.1ms) begin transaction
32
+ --------------------------------------
33
+ ActiveRecord::ResourceTest: test_truth
34
+ --------------------------------------
35
+  (0.0ms) rollback transaction
36
+  (0.1ms) begin transaction
37
+ --------------------------------------
38
+ ActiveRecord::ResourceTest: test_truth
39
+ --------------------------------------
40
+  (0.0ms) rollback transaction
41
+  (0.1ms) begin transaction
42
+ --------------------------------------
43
+ ActiveRecord::ResourceTest: test_truth
44
+ --------------------------------------
45
+  (0.0ms) rollback transaction
46
+  (0.1ms) begin transaction
47
+ --------------------------------------
48
+ ActiveRecord::ResourceTest: test_truth
49
+ --------------------------------------
50
+  (0.0ms) rollback transaction
51
+  (0.1ms) begin transaction
52
+ --------------------------------------
53
+ ActiveRecord::ResourceTest: test_truth
54
+ --------------------------------------
55
+  (0.0ms) rollback transaction
56
+  (0.1ms) begin transaction
57
+ --------------------------------------
58
+ ActiveRecord::ResourceTest: test_truth
59
+ --------------------------------------
60
+  (0.0ms) rollback transaction
61
+  (0.1ms) begin transaction
62
+ --------------------------------------
63
+ ActiveRecord::ResourceTest: test_truth
64
+ --------------------------------------
65
+  (0.0ms) rollback transaction
66
+  (0.1ms) begin transaction
67
+ --------------------------------------
68
+ ActiveRecord::ResourceTest: test_truth
69
+ --------------------------------------
70
+  (0.0ms) rollback transaction
71
+  (1.8ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
72
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
73
+  (0.1ms) select sqlite_version(*)
74
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
75
+  (0.1ms) SELECT version FROM "schema_migrations"
76
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160223204747')
77
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
78
+  (0.1ms) begin transaction
79
+ --------------------------------------
80
+ ActiveRecord::ResourceTest: test_truth
81
+ --------------------------------------
82
+  (0.0ms) rollback transaction
83
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
84
+  (0.1ms) begin transaction
85
+ --------------------------------------
86
+ ActiveRecord::ResourceTest: test_truth
87
+ --------------------------------------
88
+  (0.0ms) rollback transaction
89
+  (0.1ms) begin transaction
90
+ ---------------------------
91
+ AccountTest: test_the_truth
92
+ ---------------------------
93
+  (0.1ms) SAVEPOINT active_record_1
94
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-23 20:49:45.462369"], ["updated_at", "2016-02-23 20:49:45.462369"]]
95
+  (0.0ms) RELEASE SAVEPOINT active_record_1
96
+  (0.9ms) rollback transaction
97
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
98
+  (0.1ms) begin transaction
99
+ ---------------------------
100
+ AccountTest: test_the_truth
101
+ ---------------------------
102
+  (0.0ms) SAVEPOINT active_record_1
103
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-23 20:50:08.049665"], ["updated_at", "2016-02-23 20:50:08.049665"]]
104
+  (0.0ms) RELEASE SAVEPOINT active_record_1
105
+  (1.1ms) rollback transaction
106
+  (0.1ms) begin transaction
107
+ --------------------------------------
108
+ ActiveRecord::ResourceTest: test_truth
109
+ --------------------------------------
110
+  (0.1ms) rollback transaction
111
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
112
+  (0.1ms) begin transaction
113
+ --------------------------------------
114
+ ActiveRecord::ResourceTest: test_truth
115
+ --------------------------------------
116
+  (0.0ms) rollback transaction
117
+  (0.0ms) begin transaction
118
+ ---------------------------
119
+ AccountTest: test_the_truth
120
+ ---------------------------
121
+  (0.0ms) SAVEPOINT active_record_1
122
+ SQL (0.4ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-23 20:50:23.404405"], ["updated_at", "2016-02-23 20:50:23.404405"]]
123
+  (0.0ms) RELEASE SAVEPOINT active_record_1
124
+  (1.1ms) rollback transaction
125
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
126
+  (0.1ms) begin transaction
127
+ ---------------------------
128
+ AccountTest: test_the_truth
129
+ ---------------------------
130
+  (0.0ms) SAVEPOINT active_record_1
131
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-23 20:51:00.769057"], ["updated_at", "2016-02-23 20:51:00.769057"]]
132
+  (0.0ms) RELEASE SAVEPOINT active_record_1
133
+  (1.1ms) rollback transaction
134
+  (0.1ms) begin transaction
135
+ --------------------------------------
136
+ ActiveRecord::ResourceTest: test_truth
137
+ --------------------------------------
138
+  (0.1ms) rollback transaction
139
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
140
+  (0.1ms) begin transaction
141
+ --------------------------------------
142
+ ActiveRecord::ResourceTest: test_truth
143
+ --------------------------------------
144
+  (0.0ms) rollback transaction
145
+  (0.0ms) begin transaction
146
+ ---------------------------
147
+ AccountTest: test_the_truth
148
+ ---------------------------
149
+  (0.0ms) SAVEPOINT active_record_1
150
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-23 20:52:00.686238"], ["updated_at", "2016-02-23 20:52:00.686238"]]
151
+  (0.0ms) RELEASE SAVEPOINT active_record_1
152
+  (1.0ms) rollback transaction
153
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
154
+  (0.1ms) begin transaction
155
+ --------------------------------------------------------------------
156
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
157
+ --------------------------------------------------------------------
158
+  (0.0ms) rollback transaction
159
+  (0.0ms) begin transaction
160
+ --------------------------------------
161
+ ActiveRecord::ResourceTest: test_truth
162
+ --------------------------------------
163
+  (0.0ms) rollback transaction
164
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
165
+  (0.1ms) begin transaction
166
+ --------------------------------------
167
+ ActiveRecord::ResourceTest: test_truth
168
+ --------------------------------------
169
+  (0.0ms) rollback transaction
170
+  (0.0ms) begin transaction
171
+ --------------------------------------------------------------------
172
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
173
+ --------------------------------------------------------------------
174
+  (0.0ms) SAVEPOINT active_record_1
175
+ SQL (1.1ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 19:03:49.466732"], ["updated_at", "2016-02-24 19:03:49.466732"]]
176
+  (0.1ms) RELEASE SAVEPOINT active_record_1
177
+  (0.4ms) rollback transaction
178
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
179
+  (0.1ms) begin transaction
180
+ --------------------------------------------------------------------
181
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
182
+ --------------------------------------------------------------------
183
+  (0.0ms) SAVEPOINT active_record_1
184
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
185
+  (0.0ms) rollback transaction
186
+  (0.0ms) begin transaction
187
+ --------------------------------------
188
+ ActiveRecord::ResourceTest: test_truth
189
+ --------------------------------------
190
+  (0.0ms) rollback transaction
191
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
192
+  (0.1ms) begin transaction
193
+ --------------------------------------
194
+ ActiveRecord::ResourceTest: test_truth
195
+ --------------------------------------
196
+  (0.0ms) rollback transaction
197
+  (0.0ms) begin transaction
198
+ --------------------------------------------------------------------
199
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
200
+ --------------------------------------------------------------------
201
+  (0.0ms) SAVEPOINT active_record_1
202
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
203
+  (0.0ms) rollback transaction
204
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
205
+  (0.1ms) begin transaction
206
+ --------------------------------------------------------------------
207
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
208
+ --------------------------------------------------------------------
209
+  (0.0ms) SAVEPOINT active_record_1
210
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
211
+  (0.0ms) rollback transaction
212
+  (0.0ms) begin transaction
213
+ --------------------------------------
214
+ ActiveRecord::ResourceTest: test_truth
215
+ --------------------------------------
216
+  (0.0ms) rollback transaction
217
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
218
+  (0.1ms) begin transaction
219
+ --------------------------------------------------------------------
220
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
221
+ --------------------------------------------------------------------
222
+  (0.0ms) SAVEPOINT active_record_1
223
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
224
+  (0.0ms) rollback transaction
225
+  (0.0ms) begin transaction
226
+ --------------------------------------
227
+ ActiveRecord::ResourceTest: test_truth
228
+ --------------------------------------
229
+  (0.0ms) rollback transaction
230
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
231
+  (0.1ms) begin transaction
232
+ --------------------------------------------------------------------
233
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
234
+ --------------------------------------------------------------------
235
+  (0.0ms) SAVEPOINT active_record_1
236
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
237
+  (0.0ms) rollback transaction
238
+  (0.0ms) begin transaction
239
+ --------------------------------------
240
+ ActiveRecord::ResourceTest: test_truth
241
+ --------------------------------------
242
+  (0.0ms) rollback transaction
243
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
244
+  (0.1ms) begin transaction
245
+ --------------------------------------
246
+ ActiveRecord::ResourceTest: test_truth
247
+ --------------------------------------
248
+  (0.0ms) rollback transaction
249
+  (0.0ms) begin transaction
250
+ --------------------------------------------------------------------
251
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
252
+ --------------------------------------------------------------------
253
+  (0.1ms) SAVEPOINT active_record_1
254
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
255
+  (0.0ms) rollback transaction
256
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
257
+  (0.1ms) begin transaction
258
+ --------------------------------------------------------------------------------
259
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
260
+ --------------------------------------------------------------------------------
261
+  (0.1ms) SAVEPOINT active_record_1
262
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
263
+  (0.0ms) rollback transaction
264
+  (0.0ms) begin transaction
265
+ --------------------------------------------------------------------
266
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
267
+ --------------------------------------------------------------------
268
+  (0.0ms) SAVEPOINT active_record_1
269
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
270
+  (0.0ms) rollback transaction
271
+  (0.0ms) begin transaction
272
+ --------------------------------------
273
+ ActiveRecord::ResourceTest: test_truth
274
+ --------------------------------------
275
+  (0.0ms) rollback transaction
276
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
277
+  (0.1ms) begin transaction
278
+ --------------------------------------------------------------------------------
279
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
280
+ --------------------------------------------------------------------------------
281
+  (0.0ms) SAVEPOINT active_record_1
282
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
283
+  (0.0ms) rollback transaction
284
+  (0.0ms) begin transaction
285
+ --------------------------------------------------------------------
286
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
287
+ --------------------------------------------------------------------
288
+  (0.0ms) SAVEPOINT active_record_1
289
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
290
+  (0.0ms) rollback transaction
291
+  (0.0ms) begin transaction
292
+ --------------------------------------
293
+ ActiveRecord::ResourceTest: test_truth
294
+ --------------------------------------
295
+  (0.0ms) rollback transaction
296
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
297
+  (0.1ms) begin transaction
298
+ --------------------------------------------------------------------
299
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
300
+ --------------------------------------------------------------------
301
+  (0.0ms) SAVEPOINT active_record_1
302
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
303
+  (0.0ms) rollback transaction
304
+  (0.1ms) begin transaction
305
+ --------------------------------------------------------------------------------
306
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
307
+ --------------------------------------------------------------------------------
308
+  (0.0ms) SAVEPOINT active_record_1
309
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
310
+  (0.0ms) rollback transaction
311
+  (0.0ms) begin transaction
312
+ --------------------------------------
313
+ ActiveRecord::ResourceTest: test_truth
314
+ --------------------------------------
315
+  (0.1ms) rollback transaction
316
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
317
+  (0.1ms) begin transaction
318
+ --------------------------------------
319
+ ActiveRecord::ResourceTest: test_truth
320
+ --------------------------------------
321
+  (0.1ms) rollback transaction
322
+  (0.0ms) begin transaction
323
+ --------------------------------------------------------------------------------
324
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
325
+ --------------------------------------------------------------------------------
326
+  (0.0ms) SAVEPOINT active_record_1
327
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
328
+  (0.0ms) rollback transaction
329
+  (0.0ms) begin transaction
330
+ --------------------------------------------------------------------
331
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
332
+ --------------------------------------------------------------------
333
+  (0.0ms) SAVEPOINT active_record_1
334
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
335
+  (0.0ms) rollback transaction
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/404.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>