Exception: Mongoid::Errors::UnsupportedJavascript
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::UnsupportedJavascript
- Defined in:
- lib/mongoid/errors/unsupported_javascript.rb
Overview
Raised when Javascript criteria selector is passed for embedded document.
Constant Summary
Constants inherited from MongoidError
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.
17 18 19 20 21 22 23 24 |
# File 'lib/mongoid/errors/unsupported_javascript.rb', line 17 def initialize(klass, javascript) super( ( "unsupported_javascript", { klass: klass, javascript: javascript } ) ) end |