Skip to content

Instantly share code, notes, and snippets.

@atomical
Last active Dec 18, 2015
Embed
What would you like to do?
Finding records in Active Fedora without knowing the class
[147] pry(main)> ActiveFedora::Base.send( :find_one, 'avalon:692', { cast: true })
=> #<MasterFile:3210659936578975662 @pid="avalon:692" >
[148] pry(main)> ActiveFedora::Base.send( :find_one, 'avalon:692', { cast: true }).class
=> MasterFile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment