diff --git a/lib/extracts_path.rb b/lib/extracts_path.rb
index 6648ffdc9a32e8587308859d4dda4bf701f29a7e..f36dae5289bcf85db8a5dbbf8778d9adfe9e0768 100644
--- a/lib/extracts_path.rb
+++ b/lib/extracts_path.rb
@@ -8,7 +8,7 @@ module ExtractsPath
 
   included do
     if respond_to?(:before_filter)
-      before_filter :assign_ref_vars
+      before_filter :assign_ref_vars, only: [:show]
     end
   end