From 1bf1d3a09d7897e84c320c642b3a1ada6c18a32b Mon Sep 17 00:00:00 2001 From: Prathamesh Sonpatki Date: Sun, 22 May 2016 22:04:21 +0800 Subject: [PATCH] Fix js_template method redefined warning from Rails tests --- lib/coffee/rails/js_hook.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/coffee/rails/js_hook.rb b/lib/coffee/rails/js_hook.rb index c912632..43428c1 100644 --- a/lib/coffee/rails/js_hook.rb +++ b/lib/coffee/rails/js_hook.rb @@ -5,7 +5,7 @@ module JsHook included do no_tasks do - def js_template(source, destination) + redefine_method :js_template do |source, destination| template(source + '.coffee', destination + '.coffee') end end