Module: LHS::Record::Chainable

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

Defined Under Namespace

Modules: ClassMethods Classes: Chain, ErrorHandling, Link, Option, Pagination, Parameter

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.)



9
10
11
# File 'lib/lhs/concerns/record/chainable.rb', line 9

def options(hash = nil)
  Chain.new(self.class, Option.new(hash), self)
end