Matt-Yorkley
|
0b18b0dc0a
|
Include Calculator attributes in PaymentMethod nested attributes and DRY repeated code
|
2020-11-17 19:04:26 +00:00 |
|
Matt-Yorkley
|
d225294b6b
|
Extract to PermittedAttributes::Calculator
|
2020-11-17 18:51:48 +00:00 |
|
Matt-Yorkley
|
36f4f40e84
|
Refactor and fix PaymentMethod strong params
|
2020-11-17 18:51:48 +00:00 |
|
Matt-Yorkley
|
787f29105c
|
Fix ForbiddenAttribute errors for bulk update of enterprise fees and order cycles
Example error:
As an administrator
I want to manage simple order cycles
updating many order cycle opening/closing times at once
Failure/Error: raise ActiveModel::ForbiddenAttributesError, params.to_s
ActiveModel::ForbiddenAttributesError:
{"order_cycle_set"=>{"collection_attributes"=>{"0"=>{"id"=>62, "name"=>"Updated Order Cycle 1", "orders_open_at"=>"2040-12-01 12:00:00", "orders_close_at"=>"2040-12-01 12:00:01"}, "1"=>{"id"=>63, "name"=>"Updated Order Cycle 2", "orders_open_at"=>"2040-12-01 12:00:02", "orders_close_at"=>"2040-12-01 12:00:03"}, "2"=>{"id"=>64, "name"=>"Updated Order Cycle 3", "orders_open_at"=>"2040-12-01 12:00:04", "orders_close_at"=>"2040-12-01 12:00:05"}}}, "controller"=>"admin/order_cycles", "action"=>"bulk_update", "format"=>"json", "order_cycle"=>{}}
# ./app/controllers/application_controller.rb:20:in `print_params'
# ./lib/open_food_network/rack_request_blocker.rb:36:in `call'
# ------------------
# --- Caused by: ---
# ActiveModel::ForbiddenAttributesError:
# ActiveModel::ForbiddenAttributesError
# ./app/models/model_set.rb:29:in `block in collection_attributes='
|
2020-11-17 18:51:48 +00:00 |
|
Luis Ramos
|
1a734aacf8
|
Allow user to upload terms and conditions PDF file to an enterprise
|
2020-08-31 17:40:34 +01:00 |
|
Pau Pérez Fabregat
|
2fa8cd54fd
|
Merge pull request #5769 from Matt-Yorkley/customer-names
Customer names in reports
|
2020-08-27 15:39:47 +02:00 |
|
Matt-Yorkley
|
23bb72faa6
|
Add Enterprise shop preference to allow customer names in reports
|
2020-08-14 20:48:32 +01:00 |
|
Luis Ramos
|
7ba8c5ace1
|
Make OC advanced settings work by permitting the extra parameter
|
2020-07-21 19:44:41 +01:00 |
|
Luis Ramos
|
2d4326ded3
|
Replace empty? with blank? which is equivalent but a bit more resilient, returns false for nil
Present is not blank, so unless blank? becomes if present?
|
2020-07-01 14:08:07 +01:00 |
|
Luis Ramos
|
f6e3e01a10
|
Extract permitted payment_source attributes from checkout to use them in the backoffice payments controller
Add spec to verify payment source attributes are passed
|
2020-06-18 09:54:34 +01:00 |
|
Pau Perez
|
456f369b76
|
Fix outstanding Rubocop violations
|
2020-06-15 10:17:34 +02:00 |
|
Matt-Yorkley
|
0cc5cbd1d2
|
Merge pull request #5038 from luisramos0/strong_params_prod
[Spree 2.1] Implement strong params in products, variants, variant_overrides and resource controllers
|
2020-03-25 18:35:58 +01:00 |
|
Luis Ramos
|
6b62c8aafd
|
Extract permitted attributes to separate service
|
2020-03-25 10:52:23 +00:00 |
|
Luis Ramos
|
e5f56c19c0
|
Switch to using PermittedAttributes::Address instead of spree version of it that will be removed later
|
2020-03-25 10:52:23 +00:00 |
|
Pau Pérez Fabregat
|
2c487c2592
|
Merge pull request #5037 from luisramos0/strong_params_subs
[Spree 2.1] Implement strong params in subscriptions controller
|
2020-03-25 09:50:47 +01:00 |
|
Pau Pérez Fabregat
|
d4d72c6c6c
|
Merge pull request #5036 from luisramos0/strong_params_users
[Spree 2.1] Implement strong params in user related controllers
|
2020-03-25 09:48:52 +01:00 |
|
Pau Pérez Fabregat
|
b323364661
|
Merge pull request #5035 from luisramos0/strong_params_checkout
[Spree 2.1] Implement strong params in checkout controller
|
2020-03-25 09:46:53 +01:00 |
|
Luis Ramos
|
244499a27d
|
Extract permitted atttributes to specific classes
|
2020-03-21 19:41:05 +00:00 |
|
Luis Ramos
|
79b0867507
|
Extract permitted attributes to separate service
|
2020-03-21 19:08:37 +00:00 |
|
Luis Ramos
|
aec7f12f5a
|
Extract common user permitted attributes to a separate class
|
2020-03-21 18:31:14 +00:00 |
|
Luis Ramos
|
980fdd65a1
|
Replace hash rockets syntax
|
2020-03-21 17:00:08 +00:00 |
|
Luis Ramos
|
2c453359c1
|
Extract permitted params into a specific service
|
2020-03-21 16:49:26 +00:00 |
|
Luis Ramos
|
fd2cf7295e
|
Extract permitted_attributes from order_cycle_controller into a specific service
|
2020-03-21 16:17:20 +00:00 |
|