class OceanDynamo::Relation
Relation
is a stripped-down version of the corresponding ActiveRecord
class. OceanDynamo
doesn't implement scopes or counter caches, which simplifies the code considerably.
Inheritance chain:
Relation (@klass, @loaded) CollectionProxy (@association)
Attributes
klass[R]
loaded[R]
loaded?[R]
model[R]
Public Class Methods
new(klass)
click to toggle source
# File lib/ocean-dynamo/associations/relation.rb, line 24 def initialize(klass) @klass = klass @loaded = false end
Public Instance Methods
new(*args, &block)
click to toggle source
# File lib/ocean-dynamo/associations/relation.rb, line 30 def new(*args, &block) @klass.new(*args, &block) end
Also aliased as: build