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

gregschmit / rails-rest-framework / 14802019493

02 May 2025 07:30PM UTC coverage: 84.48% (-0.04%) from 84.517%
14802019493

Pull #37

github

gregschmit
Try out rubocop omakase.
Pull Request #37: Use Omakase Rubocop

115 of 148 new or added lines in 18 files covered. (77.7%)

9 existing lines in 2 files now uncovered.

1056 of 1250 relevant lines covered (84.48%)

98.91 hits per line

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

57.14
/lib/rest_framework/errors/unknown_model_error.rb
1
class RESTFramework::Errors::UnknownModelError < RESTFramework::Errors::BaseError
2✔
2
  def initialize(controller_class)
2✔
3
    super()
×
4
    @controller_class = controller_class
×
5
  end
6

7
  def message
2✔
NEW
8
    <<~MSG.split("\n").join(" ")
×
9
      The model class for `#{@controller_class}` could not be determined. Any controller that
10
      includes `RESTFramework::BaseModelControllerMixin` (directly or indirectly) must either set
11
      the `model` attribute on the controller, or the model must be deducible from the controller
12
      name (e.g., `UsersController` could resolve to the `User` model).
13
    MSG
14
  end
15
end
16

17
# Alias for convenience.
18
RESTFramework::UnknownModelError = RESTFramework::Errors::UnknownModelError
2✔
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