add link finder

This commit is contained in:
John Bintz 2012-12-29 15:31:55 -05:00
parent 52b51c972d
commit 60992cf1fb
1 changed files with 4 additions and 0 deletions

View File

@ -137,3 +137,7 @@ end
def refind_object(object) def refind_object(object)
object.class.find(object.id) object.class.find(object.id)
end end
def find_semantic_link(link)
find("[data-link='#{link}']")
end