I saw warnings in my code that find is deprecated. However, I can't seem to make sense of what I should use to replace the find.
For example, I have the following:
private
# Use callbacks to share common setup or constraints between actions.
def set_search
@search = Search.find(params[:id])
end
What would be the proper statement now?