Module: DHS::Record::Chainable

Extended by:
ActiveSupport::Concern
Included in:
DHS::Record
Defined in:
lib/dhs/concerns/record/chainable.rb

Defined Under Namespace

Modules: ClassMethods Classes: Chain, ErrorHandling, IgnoredError, Include, Link, Option, Pagination, Parameter, Reference

Instance Method Summary collapse

Instance Method Details

#options(hash = nil) ⇒ Object

You can start new option chains for already fetched records (needed for save, update, valid etc.)



11
12
13
14
# File 'lib/dhs/concerns/record/chainable.rb', line 11

def options(hash = nil)
  return method_missing(:options) if hash.nil?
  Chain.new(self.class, Option.new(hash), self)
end