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

gregschmit / rails-rest-framework / 12489694900

25 Dec 2024 05:09AM UTC coverage: 85.544% (+1.0%) from 84.562%
12489694900

push

github

web-flow
Merge pull request #36 from gregschmit/gns/v1

v1: OpenAPI, render_api, cleanup

202 of 219 new or added lines in 13 files covered. (92.24%)

1 existing line in 1 file now uncovered.

1006 of 1176 relevant lines covered (85.54%)

103.49 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✔
8
    return <<~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