Skip to content

Commit

Permalink
Merge pull request #75 from prathamesh-sonpatki/fix-method-redefined-…
Browse files Browse the repository at this point in the history
…warning

Fix js_template method redefined warning from Rails tests
  • Loading branch information
kaspth committed May 25, 2016
2 parents 54de8ca + 1bf1d3a commit 3416e4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/coffee/rails/js_hook.rb
Expand Up @@ -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
Expand Down

0 comments on commit 3416e4d

Please sign in to comment.