another object finder

This commit is contained in:
John Bintz 2012-12-06 08:11:14 -05:00
parent 06e59c26fd
commit d0c101f032
1 changed files with 6 additions and 1 deletions

View File

@ -85,7 +85,12 @@ def dont_find(search)
end
def dont_find_object(object)
dont_find("[data-id='#{object.id}']")
case object
when Class
dont_find("[data-type='#{object}']")
else
dont_find("[data-id='#{object.id}']")
end
end
def find_object(object)