This commit is contained in:
yuanke 2016-09-08 17:51:36 +08:00
parent b43f8cf974
commit 2ad432c5ce
1 changed files with 4 additions and 4 deletions

View File

@ -3,9 +3,9 @@
module WechatsHelper
def include_wechat_jsfile
if Rails.env.production?
javascript_include_tag '/javascripts/wechat/build/app.min.js'
else
# if Rails.env.production?
# javascript_include_tag '/javascripts/wechat/build/app.min.js'
# else
wechat_path = File.join(Rails.root, "public", "javascripts", "wechat")
srcs = Rails.application.config.wechat_srcs
paths = []
@ -15,6 +15,6 @@ module WechatsHelper
end
end
javascript_include_tag *paths
end
# end
end
end