Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Are class types enforced on ActiveTriples properties?
class MyDatastream < ActiveFedora::RDFDatastream
property :foo, predicate: ActiveTriples::Resource.new('http://example.com#foo'), class_name: 'Foo'
end
my_ds = MyDatastream.new
# I would expect this to whine.. but it doesn.
my_ds.foo = "this is definitely not a Foo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment