This commit is contained in:
parent
9b4e146577
commit
4e29242579
|
@ -3,9 +3,9 @@
|
||||||
|
|
||||||
module WechatsHelper
|
module WechatsHelper
|
||||||
def include_wechat_jsfile
|
def include_wechat_jsfile
|
||||||
if Rails.env.production?
|
# if Rails.env.production?
|
||||||
javascript_include_tag '/javascripts/wechat/build/app.min.js'
|
# javascript_include_tag '/javascripts/wechat/build/app.min.js'
|
||||||
else
|
# else
|
||||||
wechat_path = File.join(Rails.root, "public", "javascripts", "wechat")
|
wechat_path = File.join(Rails.root, "public", "javascripts", "wechat")
|
||||||
srcs = Rails.application.config.wechat_srcs
|
srcs = Rails.application.config.wechat_srcs
|
||||||
paths = []
|
paths = []
|
||||||
|
@ -15,6 +15,6 @@ module WechatsHelper
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
javascript_include_tag *paths
|
javascript_include_tag *paths
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue