Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Change the raw template handler to render html-safe strings | eileencodes | 2016-06-21 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | In PR #24929 the changelog was updated to make note that while the new template handler was changed to raw this changed the behavior when outputting plain html or js files. Previously ERB would output the files unescaped. Changing the default handler to RAW meant that these same files would be rendered as escaped rather than as js or html. Because of this change in behavior and after the discussion #24949 in we decided to change the behavior of the Raw handler to output html_safe strings by default. Now files rendered with the default handler (raw) render the file unescaped. | ||||
* | Prefer inspect over escaping and sorround by quote marks | Santiago Pastorino | 2016-01-05 | 1 | -3/+1 |
| | |||||
* | Freeze static arguments for gsub | brainopia | 2015-04-02 | 1 | -1/+1 |
| | |||||
* | Prefer string patterns for gsub | brainopia | 2015-04-02 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | https://github.com/ruby/ruby/pull/579 - there is a new optimization since ruby 2.2 Previously regexp patterns were faster (since a string was converted to regexp underneath anyway). But now string patterns are faster and better reflect the purpose. Benchmark.ips do |bm| bm.report('regexp') { 'this is ::a random string'.gsub(/::/, '/') } bm.report('string') { 'this is ::a random string'.gsub('::', '/') } bm.compare! end # string: 753724.4 i/s # regexp: 501443.1 i/s - 1.50x slower | ||||
* | Call gsub with a Regexp instead of a String for better performance | Pablo Herrero | 2014-11-01 | 1 | -1/+1 |
| | |||||
* | Move actionpack/lib/action_view* into actionview/lib | Piotr Sarnacki | 2013-06-20 | 1 | -0/+11 |