Exception: CouchFoo::ReadOnlyAssociation

Inherits:
CouchFooError
  • Object
show all
Defined in:
lib/couch_foo/associations.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(reflection) ⇒ ReadOnlyAssociation

Returns a new instance of ReadOnlyAssociation.



71
72
73
# File 'lib/couch_foo/associations.rb', line 71

def initialize(reflection)
  super("Can not add to a has_many :through association.  Try adding to #{reflection.through_reflection.name.inspect}.")
end