You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ActiveFedora::Base.find(conditions, :cast=>true) adapts the response to its first declared CModel. Principle of Least Surprise would expect ActiveFedora.find(:first, :cast=>true) and ActiveFedora.find(:all, :cast=>true) to do the same, but they don't.
The text was updated successfully, but these errors were encountered:
ActiveFedora::Base.find(:all) is just a shortcut to ActiveFedora::Base.all, which is there to preserve backwards compatibility. ActiveFedora::Base.all should always cast to the appropriate cmodel.
I've deprecated the :all, :first, and :last options in this PR: #201
ActiveFedora::Base.find(conditions, :cast=>true)
adapts the response to its first declared CModel. Principle of Least Surprise would expectActiveFedora.find(:first, :cast=>true)
andActiveFedora.find(:all, :cast=>true)
to do the same, but they don't.The text was updated successfully, but these errors were encountered: