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

gregschmit / rails-rest-framework / 14650279679

24 Apr 2025 07:40PM UTC coverage: 84.517%. Remained the same
14650279679

push

github

gregschmit
Improve README.

1059 of 1253 relevant lines covered (84.52%)

98.73 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