Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor model and controller to follow Rails conventions #15

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

arielj
Copy link

@arielj arielj commented Oct 18, 2023

This PR includes different changes:

  • use strong parameters to permit/require parameters in the requests
  • use AR validations to require attributes in the report model
  • updates tests to send json content since it matches the information we want better
  • use AR serialization to handle the "report" column de/serialization

@arielj arielj requested a review from etagwerker October 18, 2023 20:07
@arielj arielj linked an issue Oct 18, 2023 that may be closed by this pull request
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[REQUEST] Make reports#create more standard
1 participant