aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/pdfresources_controller.rb
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-11-14 15:47:43 +0000
committerMatthew Lemon <y@yulqen.org>2024-11-14 15:47:43 +0000
commit6427b28c60c6ed0dfd637307d1ab4ffe65c1144d (patch)
tree156d280b94557f9606c053f6187aec2a21eb1b36 /app/controllers/pdfresources_controller.rb
parent1b64b0b709c5704de48120e20bdfad32f34b0b5d (diff)
Adds ResourceType model
Diffstat (limited to 'app/controllers/pdfresources_controller.rb')
-rw-r--r--app/controllers/pdfresources_controller.rb17
1 files changed, 9 insertions, 8 deletions
diff --git a/app/controllers/pdfresources_controller.rb b/app/controllers/pdfresources_controller.rb
index adacc64..a710404 100644
--- a/app/controllers/pdfresources_controller.rb
+++ b/app/controllers/pdfresources_controller.rb
@@ -69,16 +69,17 @@ class PdfresourcesController < ApplicationController
# Only allow a list of trusted parameters through.
def pdfresource_params
params.require(:pdfresource).permit(
- :name,
- :stripe_product_id,
- :price,
- :age_range,
- :curriculum,
- :feature_slot,
- :description,
+ :name,
+ :stripe_product_id,
+ :price,
+ :age_range,
+ :curriculum,
+ :resource_type_id,
+ :feature_slot,
+ :description,
:card_description,
:credits,
- pdfs: [],
+ pdfs: [],
thumbnails: []
)
end