Last active
December 18, 2015 02:09
-
-
Save atomical/5708693 to your computer and use it in GitHub Desktop.
Finding records in Active Fedora without knowing the class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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