Skip to content

Instantly share code, notes, and snippets.

@jcoyne
Created January 18, 2012 21:14
Show Gist options
  • Save jcoyne/1635701 to your computer and use it in GitHub Desktop.
Save jcoyne/1635701 to your computer and use it in GitHub Desktop.
ActiveFedora::Model
module ActiveFedora
module Model
def classname_from_uri(uri)
super(map_model_name(uri))
end
def to_class_uri
map_model_name(super)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment