class NoBrainer::Document::Association::HasManyThrough
Public Instance Methods
read()
click to toggle source
# File lib/no_brainer/document/association/has_many_through.rb, line 31 def read @targets ||= metadata.eager_load([owner]).freeze end
write(new_children)
click to toggle source
# File lib/no_brainer/document/association/has_many_through.rb, line 35 def write(new_children) raise "You can't assign `#{target_name}'. " \ "Instead, you must modify delete and create `#{target_model}' manually." end