Class: Remarkable::ActiveRecord::Base
- Inherits:
-
Base
- Object
- Base
- Remarkable::ActiveRecord::Base
- Defined in:
- lib/remarkable_activerecord/base.rb
Direct Known Subclasses
Matchers::AcceptNestedAttributesForMatcher, Matchers::AllowMassAssignmentOfMatcher, Matchers::AllowValuesForMatcher, Matchers::AssociationMatcher, Matchers::HaveColumnMatcher, Matchers::HaveDefaultScopeMatcher, Matchers::HaveIndexMatcher, Matchers::HaveReadonlyAttributesMatcher, Matchers::HaveScopeMatcher, Matchers::ValidateAcceptanceOfMatcher, Matchers::ValidateAssociatedMatcher, Matchers::ValidateConfirmationOfMatcher, Matchers::ValidateLengthOfMatcher, Matchers::ValidateNumericalityOfMatcher, Matchers::ValidatePresenceOfMatcher, Matchers::ValidateUniquenessOfMatcher
Constant Summary collapse
- I18N_COLLECTION =
[ :attributes, :associations ]
Instance Method Summary collapse
-
#with_options(opts = {}) ⇒ Object
Provides a way to send options to all ActiveRecord matchers.
Instance Method Details
#with_options(opts = {}) ⇒ Object
Provides a way to send options to all ActiveRecord 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_activerecord/base.rb', line 14 def (opts={}) @options.merge!(opts) self end |