Skip to content

Instantly share code, notes, and snippets.

@atomical
Last active December 18, 2015 02:09
Show Gist options
  • Save atomical/5708693 to your computer and use it in GitHub Desktop.
Save atomical/5708693 to your computer and use it in GitHub Desktop.
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