Sha256: db3a19132e7e048a0aac23fcf0d7d638599e487db2b590bc0fedfb51114884cf
Contents?: true
Size: 713 Bytes
Versions: 12
Compression:
Stored size: 713 Bytes
Contents
class RESTFramework::Errors::UnknownModelError < RESTFramework::Errors::BaseError def initialize(controller_class) super() @controller_class = controller_class end def message return <<~MSG.split("\n").join(" ") The model class for `#{@controller_class}` could not be determined. Any controller that includes `RESTFramework::BaseModelControllerMixin` (directly or indirectly) must either set the `model` attribute on the controller, or the model must be deducible from the controller name (e.g., `UsersController` could resolve to the `User` model). MSG end end # Alias for convenience. RESTFramework::UnknownModelError = RESTFramework::Errors::UnknownModelError
Version data entries
12 entries across 12 versions & 1 rubygems