OSDN Git Service

ExtractPaths - Only call assign_ref_vars on show action
authorRobert Speicher <rspeicher@gmail.com>
Tue, 25 Sep 2012 22:20:52 +0000 (18:20 -0400)
committerRobert Speicher <rspeicher@gmail.com>
Wed, 26 Sep 2012 20:32:22 +0000 (16:32 -0400)
lib/extracts_path.rb

index 6648ffd..f36dae5 100644 (file)
@@ -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