We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
plans_controller
1 parent 10380fa commit b3d9c2dCopy full SHA for b3d9c2d
app/controllers/api/v2/plans_controller.rb
@@ -17,6 +17,8 @@ def show
17
raise Pundit::NotAuthorizedError unless plans_policy.show?
18
19
@items = [@plan]
20
+ @question_and_answer = ActiveModel::Type::Boolean.new.cast(params[:question_and_answer])
21
+
22
render '/api/v2/plans/index', status: :ok
23
end
24
@@ -26,6 +28,8 @@ def index
26
28
27
29
@plans = PlansPolicy::Scope.new(@resource_owner).resolve
30
@items = paginate_response(results: @plans)
31
32
33
34
35
0 commit comments