Class: Remarkable::MongoMapper::Base
- Inherits:
-
Base
- Object
- Base
- Remarkable::MongoMapper::Base
- Defined in:
- lib/remarkable/mongo_mapper/base.rb
Direct Known Subclasses
Matchers::AllowValuesForMatcher, Matchers::AssociationMatcher, Matchers::HaveKeyMatcher, Matchers::ValidateConfirmationOfMatcher, Matchers::ValidateLengthOfMatcher, Matchers::ValidatePresenceOfMatcher
Constant Summary collapse
- I18N_COLLECTION =
[ :attributes, :associations ]
Instance Method Summary collapse
-
#with_options(opts = {}) ⇒ Object
Provides a way to send options to all MongoMapper matchers.
Instance Method Details
#with_options(opts = {}) ⇒ Object
Provides a way to send options to all MongoMapper matchers.
validates_presence_of(:name).(:allow_nil => false)
Is equivalent to:
validates_presence_of(:name, :allow_nil => false)
14 15 16 17 |
# File 'lib/remarkable/mongo_mapper/base.rb', line 14 def (opts={}) @options.merge!(opts) self end |