Class Remarkable::ActiveRecord::Base
In: lib/remarkable_activerecord/base.rb
Parent: Remarkable::Base

Methods

Constants

I18N_COLLECTION = [ :attributes, :associations ]

Public Instance methods

Provides a way to send options to all ActiveRecord matchers.

  validates_presence_of(:name).with_options(:allow_nil => false)

Is equivalent to:

  validates_presence_of(:name, :allow_nil => false)

[Source]

    # File lib/remarkable_activerecord/base.rb, line 14
14:       def with_options(opts={})
15:         @options.merge!(opts)
16:         self
17:       end

[Validate]