• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

NZOI / nztrain / 14556340216

20 Apr 2025 05:17AM UTC coverage: 37.446% (-0.07%) from 37.515%
14556340216

Pull #289

github

tom93
Remove caching from controller permitted_params etc.

We don't call these methods multiple times during a single request, so
there is no point in caching the result. (The example from the
original strong_parameters gem doesn't use caching:
https://github.com/rails/strong_parameters.)

This also eliminates silly inconsistencies with what was cached -- in
some places it was @_permitted_params, while in other places it was
the intermediate @_permitted_attributes.

Also remove method `visible_attributes` from user_controller.rb, it's
unused since commit 8798951a (Refactor to remove the UserPresenter
service object (#165), 2023-02-18).
Pull Request #289: Remove caching from controller permitted_params etc.

29 of 48 new or added lines in 15 files covered. (60.42%)

4 existing lines in 4 files now uncovered.

2243 of 5990 relevant lines covered (37.45%)

5.65 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

18.75
/app/controllers/test_sets_controller.rb


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc