aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2015-03-12 13:42:31 +0900
committeryui-knk <spiketeika@gmail.com>2015-03-12 13:42:31 +0900
commit87b3f163a0653dcb40072156afabb50d81f3235c (patch)
treec0fd7c9952913ee0183cfa2594607755a73b0d62 /actionview
parent5df7866ba0efc3ca1e715f91824f4669c5867fe1 (diff)
downloadrails-87b3f163a0653dcb40072156afabb50d81f3235c.tar.gz
rails-87b3f163a0653dcb40072156afabb50d81f3235c.tar.bz2
rails-87b3f163a0653dcb40072156afabb50d81f3235c.zip
[ci skip] Add space after erb block.
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/helpers/javascript_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/javascript_helper.rb b/actionview/lib/action_view/helpers/javascript_helper.rb
index 629c447f3f..e237a32cb7 100644
--- a/actionview/lib/action_view/helpers/javascript_helper.rb
+++ b/actionview/lib/action_view/helpers/javascript_helper.rb
@@ -21,7 +21,7 @@ module ActionView
# Also available through the alias j(). This is particularly helpful in JavaScript
# responses, like:
#
- # $('some_element').replaceWith('<%=j render 'some/element_template' %>');
+ # $('some_element').replaceWith('<%= j render 'some/element_template' %>');
def escape_javascript(javascript)
if javascript
result = javascript.gsub(/(\\|<\/|\r\n|\342\200\250|\342\200\251|[\n\r"'])/u) {|match| JS_ESCAPE_MAP[match] }