Exception: Mongoid::Errors::UnsupportedJavascript
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::UnsupportedJavascript
- Defined in:
- build/mongoid-7.3/lib/mongoid/errors/unsupported_javascript.rb
Overview
Raised when Javascript criteria selector is passed for embedded document.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(klass, javascript) ⇒ UnsupportedJavascript
constructor
Create the new error caused by using Javascript in embedded document criteria selector.
Methods inherited from MongoidError
Constructor Details
#initialize(klass, javascript) ⇒ UnsupportedJavascript
Create the new error caused by using Javascript in embedded document criteria selector.
19 20 21 22 23 24 25 26 |
# File 'build/mongoid-7.3/lib/mongoid/errors/unsupported_javascript.rb', line 19 def initialize(klass, javascript) super( ( "unsupported_javascript", { klass: klass, javascript: javascript } ) ) end |