preserve 2.0.1 → 2.1.0

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
  SHA256:
3
- metadata.gz: 0a988328e010759f6aea94a3e3949ac538abc9c1393ec317f77e6ebc617257ac
4
- data.tar.gz: b6547bd73d6f9ef9ee625341fadd7d0770c496b5ce64734bf723e77b0a92b540
3
+ metadata.gz: a10055407c597d100bdd1588f82d29c76f61923073299a1acbb4756fa60dd973
4
+ data.tar.gz: 919c0cefd35937feb02581b51642d55b0a67efede6242272c23bf0facd866b8b
5
5
  SHA512:
6
- metadata.gz: c53746a4f4c4b3159f97d948efd9d51ef0a43ebf9a5c27094152b6477a9b1bebc6252c7bd12725397781e6c3abc05016c70e8d62b738e056e8f9fb1c96330dd1
7
- data.tar.gz: cd83c817ecbae953e31bdd602f0d01a3a9bf49cf796a436cd99056ff7a49f076c8296955651b07f3fa9b6feaba1c0c672fe2d67b583988c5cabf489f98ce78c9
6
+ metadata.gz: ec9ed9eac50988238920f5145e753c500dd0b4633c2956e3bd11c3c5ef9f00ce88ece086215aa1c95efa02bc213ca72ec7e9fa6f7680bffbbc8b530c40c82162
7
+ data.tar.gz: 2c7cb1ad5ed2bab9d8d1cf730bd7f1ff128f372fbf3958a19cf68983c33595808c67cec9782c7c78fbf3b643eaf871c05197178ae1408aa171b6cd25bf1280d0
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Preserve [![Gem version](https://img.shields.io/gem/v/preserve)](https://rubygems.org/gems/preserve) [![Build status](https://img.shields.io/travis/pienkowb/preserve/develop)](https://travis-ci.org/pienkowb/preserve) [![Coverage status](https://img.shields.io/coveralls/github/pienkowb/preserve/develop)](https://coveralls.io/github/pienkowb/preserve) [![Maintainability status](https://img.shields.io/codeclimate/maintainability/pienkowb/preserve)](https://codeclimate.com/github/pienkowb/preserve)
1
+ # Preserve [![Gem version](https://img.shields.io/gem/v/preserve)](https://rubygems.org/gems/preserve) [![Build status](https://img.shields.io/github/workflow/status/pienkowb/preserve/Test/develop)](https://github.com/pienkowb/preserve/actions/workflows/test.yml?query=branch%3Adevelop) [![Coverage status](https://img.shields.io/coveralls/github/pienkowb/preserve/develop)](https://coveralls.io/github/pienkowb/preserve) [![Maintainability status](https://img.shields.io/codeclimate/maintainability/pienkowb/preserve)](https://codeclimate.com/github/pienkowb/preserve)
2
2
 
3
3
  Preserve is a Rails plugin which stores selected parameters in the session to make them available in subsequent requests.
4
4
 
@@ -5,7 +5,7 @@ module Preserve
5
5
  module Extension
6
6
  def preserve(*parameter_keys)
7
7
  options = parameter_keys.extract_options!
8
- filter_options = options.slice(:only, :except)
8
+ filter_options = options.slice(:only, :except, :if, :unless)
9
9
 
10
10
  parameter_keys.each do |parameter_key|
11
11
  callback = Callback.new(self, parameter_key, options)
@@ -1,3 +1,3 @@
1
1
  module Preserve
2
- VERSION = '2.0.1'.freeze
2
+ VERSION = '2.1.0'.freeze
3
3
  end
@@ -17286,3 +17286,563 @@ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 102)
17286
17286
  Started GET "/parameters" for 127.0.0.1 at 2021-05-23 18:28:14 +0200
17287
17287
  Processing by ParametersController#index as HTML
17288
17288
  Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 93)
17289
+  (1.4ms) SELECT sqlite_version(*)
17290
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-26 16:09:32 +0100
17291
+ Processing by ParametersController#index as HTML
17292
+ Parameters: {"status"=>"active"}
17293
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 311)
17294
+ Started GET "/parameters?status=" for 127.0.0.1 at 2022-02-26 16:09:32 +0100
17295
+ Processing by ParametersController#index as HTML
17296
+ Parameters: {"status"=>""}
17297
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 284)
17298
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-26 16:09:32 +0100
17299
+ Processing by ParametersController#index as HTML
17300
+ Parameters: {"status"=>"active"}
17301
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 222)
17302
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:09:32 +0100
17303
+ Processing by ParametersController#index as HTML
17304
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 309)
17305
+ Started GET "/parameters?page=2&per_page=20" for 127.0.0.1 at 2022-02-26 16:09:32 +0100
17306
+ Processing by ParametersController#index as HTML
17307
+ Parameters: {"page"=>"2", "per_page"=>"20"}
17308
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 276)
17309
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:09:32 +0100
17310
+ Processing by ParametersController#index as HTML
17311
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 370)
17312
+ Started GET "/parameters?sort[column]=name&sort[direction]=desc" for 127.0.0.1 at 2022-02-26 16:09:32 +0100
17313
+ Processing by ParametersController#index as HTML
17314
+ Parameters: {"sort"=>{"column"=>"name", "direction"=>"desc"}}
17315
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 249)
17316
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:09:32 +0100
17317
+ Processing by ParametersController#index as HTML
17318
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 318)
17319
+ Started POST "/parameters" for 127.0.0.1 at 2022-02-26 16:09:32 +0100
17320
+ Processing by ParametersController#create as HTML
17321
+ Parameters: {"status"=>"active"}
17322
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 130)
17323
+ Started POST "/parameters" for 127.0.0.1 at 2022-02-26 16:09:32 +0100
17324
+ Processing by ParametersController#create as HTML
17325
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 99)
17326
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-26 16:09:32 +0100
17327
+ Processing by ParametersController#index as HTML
17328
+ Parameters: {"status"=>"active"}
17329
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 222)
17330
+ Started GET "/parameters?status=inactive" for 127.0.0.1 at 2022-02-26 16:09:32 +0100
17331
+ Processing by ParametersController#index as HTML
17332
+ Parameters: {"status"=>"inactive"}
17333
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 281)
17334
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:09:32 +0100
17335
+ Processing by ParametersController#index as HTML
17336
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 305)
17337
+ Started GET "/parameters?locale=en" for 127.0.0.1 at 2022-02-26 16:09:32 +0100
17338
+ Processing by ParametersController#index as HTML
17339
+ Parameters: {"locale"=>"en"}
17340
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 223)
17341
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:09:32 +0100
17342
+ Processing by ParametersController#index as HTML
17343
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 299)
17344
+ Started GET "/admin/parameters" for 127.0.0.1 at 2022-02-26 16:09:32 +0100
17345
+ Processing by Admin::ParametersController#index as HTML
17346
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 332)
17347
+ Started GET "/admin/parameters?status=active" for 127.0.0.1 at 2022-02-26 16:09:32 +0100
17348
+ Processing by Admin::ParametersController#index as HTML
17349
+ Parameters: {"status"=>"active"}
17350
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 223)
17351
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:09:32 +0100
17352
+ Processing by ParametersController#index as HTML
17353
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 296)
17354
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:09:32 +0100
17355
+ Processing by ParametersController#index as HTML
17356
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 218)
17357
+ Started GET "/parameters?status=inactive" for 127.0.0.1 at 2022-02-26 16:09:32 +0100
17358
+ Processing by ParametersController#index as HTML
17359
+ Parameters: {"status"=>"inactive"}
17360
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 204)
17361
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-26 16:09:32 +0100
17362
+ Processing by ParametersController#index as HTML
17363
+ Parameters: {"status"=>"active"}
17364
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 102)
17365
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:09:32 +0100
17366
+ Processing by ParametersController#index as HTML
17367
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 93)
17368
+  (1.0ms) SELECT sqlite_version(*)
17369
+ Started GET "/parameters?locale=en" for 127.0.0.1 at 2022-02-26 16:11:53 +0100
17370
+ Processing by ParametersController#index as HTML
17371
+ Parameters: {"locale"=>"en"}
17372
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 310)
17373
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:11:53 +0100
17374
+ Processing by ParametersController#index as HTML
17375
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 306)
17376
+ Started GET "/admin/parameters" for 127.0.0.1 at 2022-02-26 16:11:53 +0100
17377
+ Processing by Admin::ParametersController#index as HTML
17378
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 326)
17379
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-26 16:11:53 +0100
17380
+ Processing by ParametersController#index as HTML
17381
+ Parameters: {"status"=>"active"}
17382
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 223)
17383
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:11:53 +0100
17384
+ Processing by ParametersController#index as HTML
17385
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 309)
17386
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-26 16:11:53 +0100
17387
+ Processing by ParametersController#index as HTML
17388
+ Parameters: {"status"=>"active"}
17389
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 222)
17390
+ Started GET "/parameters?status=" for 127.0.0.1 at 2022-02-26 16:11:53 +0100
17391
+ Processing by ParametersController#index as HTML
17392
+ Parameters: {"status"=>""}
17393
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 293)
17394
+ Started GET "/admin/parameters?status=active" for 127.0.0.1 at 2022-02-26 16:11:53 +0100
17395
+ Processing by Admin::ParametersController#index as HTML
17396
+ Parameters: {"status"=>"active"}
17397
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 224)
17398
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:11:53 +0100
17399
+ Processing by ParametersController#index as HTML
17400
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 288)
17401
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-26 16:11:53 +0100
17402
+ Processing by ParametersController#index as HTML
17403
+ Parameters: {"status"=>"active"}
17404
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 222)
17405
+ Started GET "/parameters?status=inactive" for 127.0.0.1 at 2022-02-26 16:11:53 +0100
17406
+ Processing by ParametersController#index as HTML
17407
+ Parameters: {"status"=>"inactive"}
17408
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 281)
17409
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:11:53 +0100
17410
+ Processing by ParametersController#index as HTML
17411
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 307)
17412
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:11:53 +0100
17413
+ Processing by ParametersController#index as HTML
17414
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 218)
17415
+ Started GET "/parameters?status=inactive" for 127.0.0.1 at 2022-02-26 16:11:53 +0100
17416
+ Processing by ParametersController#index as HTML
17417
+ Parameters: {"status"=>"inactive"}
17418
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 204)
17419
+ Started POST "/parameters" for 127.0.0.1 at 2022-02-26 16:11:53 +0100
17420
+ Processing by ParametersController#create as HTML
17421
+ Parameters: {"status"=>"active"}
17422
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 130)
17423
+ Started POST "/parameters" for 127.0.0.1 at 2022-02-26 16:11:53 +0100
17424
+ Processing by ParametersController#create as HTML
17425
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 99)
17426
+ Started GET "/parameters?sort[column]=name&sort[direction]=desc" for 127.0.0.1 at 2022-02-26 16:11:53 +0100
17427
+ Processing by ParametersController#index as HTML
17428
+ Parameters: {"sort"=>{"column"=>"name", "direction"=>"desc"}}
17429
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 249)
17430
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:11:53 +0100
17431
+ Processing by ParametersController#index as HTML
17432
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 312)
17433
+ Started GET "/parameters?page=2&per_page=20" for 127.0.0.1 at 2022-02-26 16:11:53 +0100
17434
+ Processing by ParametersController#index as HTML
17435
+ Parameters: {"page"=>"2", "per_page"=>"20"}
17436
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 276)
17437
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:11:53 +0100
17438
+ Processing by ParametersController#index as HTML
17439
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 364)
17440
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-26 16:11:53 +0100
17441
+ Processing by ParametersController#index as HTML
17442
+ Parameters: {"status"=>"active"}
17443
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 102)
17444
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:11:53 +0100
17445
+ Processing by ParametersController#index as HTML
17446
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 93)
17447
+  (1.0ms) SELECT sqlite_version(*)
17448
+ Started GET "/parameters?page=2&per_page=20" for 127.0.0.1 at 2022-02-26 16:12:44 +0100
17449
+ Processing by ParametersController#index as HTML
17450
+ Parameters: {"page"=>"2", "per_page"=>"20"}
17451
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 364)
17452
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:12:44 +0100
17453
+ Processing by ParametersController#index as HTML
17454
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 371)
17455
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-26 16:12:44 +0100
17456
+ Processing by ParametersController#index as HTML
17457
+ Parameters: {"status"=>"active"}
17458
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 223)
17459
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:12:44 +0100
17460
+ Processing by ParametersController#index as HTML
17461
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 315)
17462
+ Started GET "/admin/parameters?status=active" for 127.0.0.1 at 2022-02-26 16:12:44 +0100
17463
+ Processing by Admin::ParametersController#index as HTML
17464
+ Parameters: {"status"=>"active"}
17465
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 226)
17466
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:12:44 +0100
17467
+ Processing by ParametersController#index as HTML
17468
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 290)
17469
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:12:44 +0100
17470
+ Processing by ParametersController#index as HTML
17471
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 218)
17472
+ Started GET "/parameters?status=inactive" for 127.0.0.1 at 2022-02-26 16:12:44 +0100
17473
+ Processing by ParametersController#index as HTML
17474
+ Parameters: {"status"=>"inactive"}
17475
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 204)
17476
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-26 16:12:44 +0100
17477
+ Processing by ParametersController#index as HTML
17478
+ Parameters: {"status"=>"active"}
17479
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 222)
17480
+ Started GET "/parameters?status=" for 127.0.0.1 at 2022-02-26 16:12:44 +0100
17481
+ Processing by ParametersController#index as HTML
17482
+ Parameters: {"status"=>""}
17483
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 281)
17484
+ Started GET "/parameters?sort[column]=name&sort[direction]=desc" for 127.0.0.1 at 2022-02-26 16:12:44 +0100
17485
+ Processing by ParametersController#index as HTML
17486
+ Parameters: {"sort"=>{"column"=>"name", "direction"=>"desc"}}
17487
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 249)
17488
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:12:44 +0100
17489
+ Processing by ParametersController#index as HTML
17490
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 328)
17491
+ Started GET "/parameters?locale=en" for 127.0.0.1 at 2022-02-26 16:12:44 +0100
17492
+ Processing by ParametersController#index as HTML
17493
+ Parameters: {"locale"=>"en"}
17494
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 223)
17495
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:12:44 +0100
17496
+ Processing by ParametersController#index as HTML
17497
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 295)
17498
+ Started GET "/admin/parameters" for 127.0.0.1 at 2022-02-26 16:12:44 +0100
17499
+ Processing by Admin::ParametersController#index as HTML
17500
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 331)
17501
+ Started POST "/parameters" for 127.0.0.1 at 2022-02-26 16:12:44 +0100
17502
+ Processing by ParametersController#create as HTML
17503
+ Parameters: {"status"=>"active"}
17504
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 130)
17505
+ Started POST "/parameters" for 127.0.0.1 at 2022-02-26 16:12:44 +0100
17506
+ Processing by ParametersController#create as HTML
17507
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 99)
17508
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-26 16:12:44 +0100
17509
+ Processing by ParametersController#index as HTML
17510
+ Parameters: {"status"=>"active"}
17511
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 222)
17512
+ Started GET "/parameters?status=inactive" for 127.0.0.1 at 2022-02-26 16:12:44 +0100
17513
+ Processing by ParametersController#index as HTML
17514
+ Parameters: {"status"=>"inactive"}
17515
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 283)
17516
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:12:44 +0100
17517
+ Processing by ParametersController#index as HTML
17518
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 311)
17519
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-26 16:12:44 +0100
17520
+ Processing by ParametersController#index as HTML
17521
+ Parameters: {"status"=>"active"}
17522
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 102)
17523
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:12:44 +0100
17524
+ Processing by ParametersController#index as HTML
17525
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 93)
17526
+  (1.0ms) SELECT sqlite_version(*)
17527
+ Started GET "/admin/parameters?status=active" for 127.0.0.1 at 2022-02-26 16:14:20 +0100
17528
+ Processing by Admin::ParametersController#index as HTML
17529
+ Parameters: {"status"=>"active"}
17530
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 310)
17531
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:14:20 +0100
17532
+ Processing by ParametersController#index as HTML
17533
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 306)
17534
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-26 16:14:20 +0100
17535
+ Processing by ParametersController#index as HTML
17536
+ Parameters: {"status"=>"active"}
17537
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 223)
17538
+ Started GET "/parameters?status=" for 127.0.0.1 at 2022-02-26 16:14:20 +0100
17539
+ Processing by ParametersController#index as HTML
17540
+ Parameters: {"status"=>""}
17541
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 283)
17542
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-26 16:14:20 +0100
17543
+ Processing by ParametersController#index as HTML
17544
+ Parameters: {"status"=>"active"}
17545
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 222)
17546
+ Started GET "/parameters?status=inactive" for 127.0.0.1 at 2022-02-26 16:14:20 +0100
17547
+ Processing by ParametersController#index as HTML
17548
+ Parameters: {"status"=>"inactive"}
17549
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 283)
17550
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:14:20 +0100
17551
+ Processing by ParametersController#index as HTML
17552
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 305)
17553
+ Started GET "/parameters?locale=en" for 127.0.0.1 at 2022-02-26 16:14:20 +0100
17554
+ Processing by ParametersController#index as HTML
17555
+ Parameters: {"locale"=>"en"}
17556
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 223)
17557
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:14:20 +0100
17558
+ Processing by ParametersController#index as HTML
17559
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 297)
17560
+ Started GET "/admin/parameters" for 127.0.0.1 at 2022-02-26 16:14:20 +0100
17561
+ Processing by Admin::ParametersController#index as HTML
17562
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 329)
17563
+ Started POST "/parameters" for 127.0.0.1 at 2022-02-26 16:14:20 +0100
17564
+ Processing by ParametersController#create as HTML
17565
+ Parameters: {"status"=>"active"}
17566
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 130)
17567
+ Started POST "/parameters" for 127.0.0.1 at 2022-02-26 16:14:20 +0100
17568
+ Processing by ParametersController#create as HTML
17569
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 99)
17570
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:14:20 +0100
17571
+ Processing by ParametersController#index as HTML
17572
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 218)
17573
+ Started GET "/parameters?status=inactive" for 127.0.0.1 at 2022-02-26 16:14:20 +0100
17574
+ Processing by ParametersController#index as HTML
17575
+ Parameters: {"status"=>"inactive"}
17576
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 204)
17577
+ Started GET "/parameters?page=2&per_page=20" for 127.0.0.1 at 2022-02-26 16:14:20 +0100
17578
+ Processing by ParametersController#index as HTML
17579
+ Parameters: {"page"=>"2", "per_page"=>"20"}
17580
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 276)
17581
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:14:20 +0100
17582
+ Processing by ParametersController#index as HTML
17583
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 366)
17584
+ Started GET "/parameters?sort[column]=name&sort[direction]=desc" for 127.0.0.1 at 2022-02-26 16:14:20 +0100
17585
+ Processing by ParametersController#index as HTML
17586
+ Parameters: {"sort"=>{"column"=>"name", "direction"=>"desc"}}
17587
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 249)
17588
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:14:20 +0100
17589
+ Processing by ParametersController#index as HTML
17590
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 326)
17591
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-26 16:14:20 +0100
17592
+ Processing by ParametersController#index as HTML
17593
+ Parameters: {"status"=>"active"}
17594
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 222)
17595
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:14:20 +0100
17596
+ Processing by ParametersController#index as HTML
17597
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 317)
17598
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-26 16:14:20 +0100
17599
+ Processing by ParametersController#index as HTML
17600
+ Parameters: {"status"=>"active"}
17601
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 102)
17602
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-26 16:14:20 +0100
17603
+ Processing by ParametersController#index as HTML
17604
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 93)
17605
+  (1.0ms) SELECT sqlite_version(*)
17606
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-27 20:05:14 +0100
17607
+ Processing by ParametersController#index as HTML
17608
+ Parameters: {"status"=>"active"}
17609
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 678)
17610
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-27 20:05:14 +0100
17611
+ Processing by ParametersController#index as HTML
17612
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 471)
17613
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-27 20:05:14 +0100
17614
+ Processing by ParametersController#index as HTML
17615
+ Parameters: {"status"=>"active"}
17616
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 308)
17617
+ Started GET "/parameters?status=" for 127.0.0.1 at 2022-02-27 20:05:14 +0100
17618
+ Processing by ParametersController#index as HTML
17619
+ Parameters: {"status"=>""}
17620
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 313)
17621
+ Started GET "/parameters?locale=en" for 127.0.0.1 at 2022-02-27 20:05:14 +0100
17622
+ Processing by ParametersController#index as HTML
17623
+ Parameters: {"locale"=>"en"}
17624
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 310)
17625
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-27 20:05:14 +0100
17626
+ Processing by ParametersController#index as HTML
17627
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 314)
17628
+ Started GET "/admin/parameters" for 127.0.0.1 at 2022-02-27 20:05:14 +0100
17629
+ Processing by Admin::ParametersController#index as HTML
17630
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 397)
17631
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-27 20:05:14 +0100
17632
+ Processing by ParametersController#index as HTML
17633
+ Parameters: {"status"=>"active"}
17634
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 308)
17635
+ Started GET "/parameters?status=inactive" for 127.0.0.1 at 2022-02-27 20:05:14 +0100
17636
+ Processing by ParametersController#index as HTML
17637
+ Parameters: {"status"=>"inactive"}
17638
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 308)
17639
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-27 20:05:14 +0100
17640
+ Processing by ParametersController#index as HTML
17641
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 323)
17642
+ Started GET "/parameters?page=2&per_page=20" for 127.0.0.1 at 2022-02-27 20:05:14 +0100
17643
+ Processing by ParametersController#index as HTML
17644
+ Parameters: {"page"=>"2", "per_page"=>"20"}
17645
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 360)
17646
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-27 20:05:14 +0100
17647
+ Processing by ParametersController#index as HTML
17648
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 385)
17649
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-27 20:05:14 +0100
17650
+ Processing by ParametersController#index as HTML
17651
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 302)
17652
+ Started GET "/parameters?status=inactive" for 127.0.0.1 at 2022-02-27 20:05:14 +0100
17653
+ Processing by ParametersController#index as HTML
17654
+ Parameters: {"status"=>"inactive"}
17655
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 205)
17656
+ Started GET "/admin/parameters?status=active" for 127.0.0.1 at 2022-02-27 20:05:14 +0100
17657
+ Processing by Admin::ParametersController#index as HTML
17658
+ Parameters: {"status"=>"active"}
17659
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms | Allocations: 310)
17660
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-27 20:05:14 +0100
17661
+ Processing by ParametersController#index as HTML
17662
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 320)
17663
+ Started POST "/parameters" for 127.0.0.1 at 2022-02-27 20:05:14 +0100
17664
+ Processing by ParametersController#create as HTML
17665
+ Parameters: {"status"=>"active"}
17666
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 230)
17667
+ Started POST "/parameters" for 127.0.0.1 at 2022-02-27 20:05:14 +0100
17668
+ Processing by ParametersController#create as HTML
17669
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 139)
17670
+ Started GET "/parameters?sort[column]=name&sort[direction]=desc" for 127.0.0.1 at 2022-02-27 20:05:14 +0100
17671
+ Processing by ParametersController#index as HTML
17672
+ Parameters: {"sort"=>{"column"=>"name", "direction"=>"desc"}}
17673
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 335)
17674
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-27 20:05:14 +0100
17675
+ Processing by ParametersController#index as HTML
17676
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 334)
17677
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-27 20:05:14 +0100
17678
+ Processing by ParametersController#index as HTML
17679
+ Parameters: {"status"=>"active"}
17680
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 144)
17681
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-27 20:05:14 +0100
17682
+ Processing by ParametersController#index as HTML
17683
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 90)
17684
+  (1.0ms) SELECT sqlite_version(*)
17685
+ Started GET "/parameters?sort[column]=name&sort[direction]=desc" for 127.0.0.1 at 2022-02-27 20:05:32 +0100
17686
+ Processing by ParametersController#index as HTML
17687
+ Parameters: {"sort"=>{"column"=>"name", "direction"=>"desc"}}
17688
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 702)
17689
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-27 20:05:32 +0100
17690
+ Processing by ParametersController#index as HTML
17691
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 479)
17692
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-27 20:05:32 +0100
17693
+ Processing by ParametersController#index as HTML
17694
+ Parameters: {"status"=>"active"}
17695
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 311)
17696
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-27 20:05:32 +0100
17697
+ Processing by ParametersController#index as HTML
17698
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 335)
17699
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-27 20:05:32 +0100
17700
+ Processing by ParametersController#index as HTML
17701
+ Parameters: {"status"=>"active"}
17702
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 308)
17703
+ Started GET "/parameters?status=" for 127.0.0.1 at 2022-02-27 20:05:32 +0100
17704
+ Processing by ParametersController#index as HTML
17705
+ Parameters: {"status"=>""}
17706
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 331)
17707
+ Started GET "/parameters?page=2&per_page=20" for 127.0.0.1 at 2022-02-27 20:05:32 +0100
17708
+ Processing by ParametersController#index as HTML
17709
+ Parameters: {"page"=>"2", "per_page"=>"20"}
17710
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 360)
17711
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-27 20:05:32 +0100
17712
+ Processing by ParametersController#index as HTML
17713
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 385)
17714
+ Started GET "/admin/parameters?status=active" for 127.0.0.1 at 2022-02-27 20:05:32 +0100
17715
+ Processing by Admin::ParametersController#index as HTML
17716
+ Parameters: {"status"=>"active"}
17717
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 360)
17718
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-27 20:05:32 +0100
17719
+ Processing by ParametersController#index as HTML
17720
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 312)
17721
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-27 20:05:32 +0100
17722
+ Processing by ParametersController#index as HTML
17723
+ Parameters: {"status"=>"active"}
17724
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 308)
17725
+ Started GET "/parameters?status=inactive" for 127.0.0.1 at 2022-02-27 20:05:32 +0100
17726
+ Processing by ParametersController#index as HTML
17727
+ Parameters: {"status"=>"inactive"}
17728
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 301)
17729
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-27 20:05:32 +0100
17730
+ Processing by ParametersController#index as HTML
17731
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 302)
17732
+ Started GET "/parameters?locale=en" for 127.0.0.1 at 2022-02-27 20:05:32 +0100
17733
+ Processing by ParametersController#index as HTML
17734
+ Parameters: {"locale"=>"en"}
17735
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 310)
17736
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-27 20:05:32 +0100
17737
+ Processing by ParametersController#index as HTML
17738
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 311)
17739
+ Started GET "/admin/parameters" for 127.0.0.1 at 2022-02-27 20:05:32 +0100
17740
+ Processing by Admin::ParametersController#index as HTML
17741
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 342)
17742
+ Started POST "/parameters" for 127.0.0.1 at 2022-02-27 20:05:32 +0100
17743
+ Processing by ParametersController#create as HTML
17744
+ Parameters: {"status"=>"active"}
17745
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 230)
17746
+ Started POST "/parameters" for 127.0.0.1 at 2022-02-27 20:05:32 +0100
17747
+ Processing by ParametersController#create as HTML
17748
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 139)
17749
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-27 20:05:32 +0100
17750
+ Processing by ParametersController#index as HTML
17751
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 302)
17752
+ Started GET "/parameters?status=inactive" for 127.0.0.1 at 2022-02-27 20:05:32 +0100
17753
+ Processing by ParametersController#index as HTML
17754
+ Parameters: {"status"=>"inactive"}
17755
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 205)
17756
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-02-27 20:05:32 +0100
17757
+ Processing by ParametersController#index as HTML
17758
+ Parameters: {"status"=>"active"}
17759
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 144)
17760
+ Started GET "/parameters" for 127.0.0.1 at 2022-02-27 20:05:32 +0100
17761
+ Processing by ParametersController#index as HTML
17762
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 90)
17763
+  (2.0ms) SELECT sqlite_version(*)
17764
+ Started POST "/parameters" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17765
+ Processing by ParametersController#create as HTML
17766
+ Parameters: {"status"=>"active"}
17767
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms | Allocations: 190)
17768
+ Started POST "/parameters" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17769
+ Processing by ParametersController#create as HTML
17770
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 99)
17771
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17772
+ Processing by ParametersController#index as HTML
17773
+ Parameters: {"status"=>"active"}
17774
+ Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 249)
17775
+ Started GET "/parameters" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17776
+ Processing by ParametersController#index as HTML
17777
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 310)
17778
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17779
+ Processing by ParametersController#index as HTML
17780
+ Parameters: {"status"=>"active"}
17781
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 130)
17782
+ Started GET "/parameters" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17783
+ Processing by ParametersController#index as HTML
17784
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 99)
17785
+ Started GET "/parameters?sort[column]=name&sort[direction]=desc" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17786
+ Processing by ParametersController#index as HTML
17787
+ Parameters: {"sort"=>{"column"=>"name", "direction"=>"desc"}}
17788
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 249)
17789
+ Started GET "/parameters" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17790
+ Processing by ParametersController#index as HTML
17791
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 320)
17792
+ Started GET "/parameters?page=2&per_page=20" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17793
+ Processing by ParametersController#index as HTML
17794
+ Parameters: {"page"=>"2", "per_page"=>"20"}
17795
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 276)
17796
+ Started GET "/parameters" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17797
+ Processing by ParametersController#index as HTML
17798
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 372)
17799
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17800
+ Processing by ParametersController#index as HTML
17801
+ Parameters: {"status"=>"active"}
17802
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 222)
17803
+ Started GET "/parameters?status=inactive" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17804
+ Processing by ParametersController#index as HTML
17805
+ Parameters: {"status"=>"inactive"}
17806
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 287)
17807
+ Started GET "/parameters" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17808
+ Processing by ParametersController#index as HTML
17809
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 293)
17810
+ Started GET "/parameters" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17811
+ Processing by ParametersController#index as HTML
17812
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 218)
17813
+ Started GET "/parameters?status=inactive" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17814
+ Processing by ParametersController#index as HTML
17815
+ Parameters: {"status"=>"inactive"}
17816
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms | Allocations: 204)
17817
+ Started GET "/parameters?locale=en" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17818
+ Processing by ParametersController#index as HTML
17819
+ Parameters: {"locale"=>"en"}
17820
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 223)
17821
+ Started GET "/parameters" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17822
+ Processing by ParametersController#index as HTML
17823
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 301)
17824
+ Started GET "/admin/parameters" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17825
+ Processing by Admin::ParametersController#index as HTML
17826
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 322)
17827
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17828
+ Processing by ParametersController#index as HTML
17829
+ Parameters: {"status"=>"active"}
17830
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms | Allocations: 222)
17831
+ Started GET "/parameters?status=" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17832
+ Processing by ParametersController#index as HTML
17833
+ Parameters: {"status"=>""}
17834
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 305)
17835
+ Started GET "/admin/parameters?status=active" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17836
+ Processing by Admin::ParametersController#index as HTML
17837
+ Parameters: {"status"=>"active"}
17838
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 223)
17839
+ Started GET "/parameters" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17840
+ Processing by ParametersController#index as HTML
17841
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 286)
17842
+ Started GET "/parameters?status=active" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17843
+ Processing by ParametersController#index as HTML
17844
+ Parameters: {"status"=>"active"}
17845
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 102)
17846
+ Started GET "/parameters" for 127.0.0.1 at 2022-11-19 14:18:06 +0100
17847
+ Processing by ParametersController#index as HTML
17848
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 93)
@@ -44,6 +44,15 @@ RSpec.describe Preserve, type: :request do
44
44
  expect(json_response[:status]).to eq(nil)
45
45
  end
46
46
 
47
+ it 'applies callback conditional options' do
48
+ ParametersController.preserve(:status, if: -> { false })
49
+
50
+ get parameters_path, params: { status: 'active' }
51
+ get parameters_path
52
+
53
+ expect(json_response[:status]).to eq(nil)
54
+ end
55
+
47
56
  it 'supports controller inheritance' do
48
57
  ApplicationController.preserve(:locale)
49
58
 
data/spec/spec_helper.rb CHANGED
@@ -1,10 +1,22 @@
1
1
  ENV['RAILS_ENV'] ||= 'test'
2
2
 
3
3
  require 'bundler/setup'
4
- require 'coveralls'
5
- require 'rails'
4
+ require 'simplecov'
5
+
6
+ SimpleCov.start do
7
+ if ENV['CI']
8
+ require 'simplecov-lcov'
9
+
10
+ SimpleCov::Formatter::LcovFormatter.config do |config|
11
+ config.report_with_single_file = true
12
+ config.single_report_path = 'coverage/lcov.info'
13
+ end
6
14
 
7
- Coveralls.wear!
15
+ formatter SimpleCov::Formatter::LcovFormatter
16
+ end
17
+ end
18
+
19
+ require 'rails'
8
20
 
9
21
  version = Rails::VERSION::MAJOR
10
22
  dummy_root = File.expand_path("dummy/rails-#{version}", __dir__)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: preserve
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bartosz Pieńkowski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-23 00:00:00.000000000 Z
11
+ date: 2022-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -53,61 +53,75 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: coveralls
56
+ name: rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0.8'
61
+ version: '6.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0.8'
68
+ version: '6.0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rails
70
+ name: rspec-rails
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '6.0'
75
+ version: '3.9'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '6.0'
82
+ version: '3.9'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rspec-rails
84
+ name: rubocop
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '3.9'
89
+ version: 0.50.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '3.9'
96
+ version: 0.50.0
97
97
  - !ruby/object:Gem::Dependency
98
- name: rubocop
98
+ name: simplecov
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.50.0
103
+ version: 0.16.1
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.50.0
110
+ version: 0.16.1
111
+ - !ruby/object:Gem::Dependency
112
+ name: simplecov-lcov
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 0.7.0
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 0.7.0
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: sqlite3
113
127
  requirement: !ruby/object:Gem::Requirement