From 06e59c26fd21b1740795de2eaef52c89221aba24 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 5 Dec 2012 21:22:40 -0500 Subject: [PATCH] add object refinder --- lib/semantic_rails_view_helpers/capybara.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/semantic_rails_view_helpers/capybara.rb b/lib/semantic_rails_view_helpers/capybara.rb index ecb0bb6..9a623dd 100644 --- a/lib/semantic_rails_view_helpers/capybara.rb +++ b/lib/semantic_rails_view_helpers/capybara.rb @@ -121,3 +121,6 @@ def within_any(search, &block) false end +def refind_object(object) + object.class.find(object.id) +end