active_fedora icon indicating copy to clipboard operation
active_fedora copied to clipboard

Trying to reload a belongs_to association triggers NotImplementedError

Open jcoyne opened this issue 10 years ago • 1 comments

class Foo < ActiveFedora::Base
  belongs_to :bar, predicate: ::RDF::URI('http://example.com/bar')
end
class Bar < ActiveFedora::Base; end
foo = Foo.new
foo.bar(true)

NotImplementedError: Need to define the uncached method
    from /Users/justin/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/active-fedora-9.3.0/lib/active_fedora/associations/singular_association.rb:8:in `reader'
    from /Users/justin/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/active-fedora-9.3.0/lib/active_fedora/associations/builder/association.rb:63:in `block in define_readers'

jcoyne avatar Aug 27 '15 20:08 jcoyne

Still true today.

atz avatar Jun 02 '17 02:06 atz