- 17 7月, 2014 5 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
This class is only used on the PartialRenderer.
-
由 Joel Junström 提交于
The iteration object is available as the local variable "template_name_iteration" when rendering partials with collections. It gives access to the +size+ of the collection beeing iterated over, the current +index+ and two convinicence methods +first?+ and +last?+ "template_name_counter" variable is kept but is deprecated. [Joel Junström + Lucas Uyezu]
-
- 15 7月, 2014 2 次提交
-
-
由 Jolyon Pawlyn 提交于
Return an absolute instead of relative path from an asset url in the case of the `asset_host` proc returning nil
-
由 Alan Skorkin 提交于
-
- 14 7月, 2014 1 次提交
-
-
由 Santosh Wadghule 提交于
-
- 10 7月, 2014 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
Since 68574151 we are using #safe_join to join the content when an Array is given, so we must include the dependent module here to make sure it's available when this module is used alone. This was making Simple Form tests to fail with current master due to the missing dependency.
-
- 04 7月, 2014 1 次提交
-
-
由 Akshay Vishnoi 提交于
-
- 01 7月, 2014 2 次提交
-
-
由 Rafael Mendonça França 提交于
Since we are using both branches of the code is preferable to use if/else over the early return.
-
由 Todd Bealmear 提交于
-
- 30 6月, 2014 1 次提交
-
-
由 Robin Dupret 提交于
-
- 29 6月, 2014 1 次提交
-
-
由 Max Kramer 提交于
Rename `include_seconds_or_options` to `options` to match 6b9356a4 (which removed the deprecation introduced by #6077). This has no functional impact because the parameter is passed directly through, but makes it clearer that the parameter no longer supports a boolean as input.
-
- 26 6月, 2014 1 次提交
-
-
由 Luke Gruber 提交于
Using ruby-prof, I noticed that Set#add had the largest 'self time' percentage (5% of the overall time spent rendering) when benchmarking the rendering of a small cached ERB template that was 3 lines long. It turns out it was from this line. I don't believe the Set is necessary, either. Removing this line increases the rendering ips using Benchmark::ips accordingly.
-
- 25 6月, 2014 1 次提交
-
-
由 Gareth Rees 提交于
Original implementation has bugs if the regex contains a match group. Example: excerpt('This is a beautiful? morning', /\b(beau\w*)\b/i, :radius => 5) Expected: "...is a beautiful? mor..." Actual: "...is a beautifulbeaut..." The original phrase was being converted to a regex and returning the text either side of the phrase as expected: 'This is a beautiful? morning'.split(/beautiful/i, 2) # => ["This is a ", "? morning"] When we have a match with groups the match is returned in the array. Quoting the ruby docs: "If pattern is a Regexp, str is divided where the pattern matches. [...] If pattern contains groups, the respective matches will be returned in the array as well." 'This is a beautiful? morning'.split(/\b(beau\w*)\b/iu, 2) # => ["This is a ", "beautiful", "? morning"] If we assume we want to split on the first match – this fix makes that assumption – we can pass the already assigned `phrase` variable as the place to split (because we already know that a match exists from line 168). Originally spotted by Louise Crow (@crowbot) at https://github.com/mysociety/alaveteli/pull/1557
-
- 20 6月, 2014 3 次提交
-
-
由 Lucas Mazza 提交于
The helper will yield each matched word, and you can use this instead of the ':highlighter' option for more complex replacing logic: highlight('My email is me@work.com', EMAIL_REGEXP) { |m| mail_to(m) } # => 'My email is <a href="mailto:me@work.com">me@work.com</a>'
-
由 Jan Szumiec 提交于
-
由 Jan Szumiec 提交于
-
- 17 6月, 2014 2 次提交
-
-
由 Aditya Kapoor 提交于
-
由 Kuldeep Aggarwal 提交于
see cc255d34
-
- 14 6月, 2014 3 次提交
-
-
由 Aditya Kapoor 提交于
-
由 Paul Grayson 提交于
In actionview, eliminate calls to tag that use html_safe parameter values. This is generally unnecessary, since tag handles string quoting, except in one case (utf8_enforcer_tag) where we want to specify the encoding ourselves.
-
由 Zachary Scott 提交于
This was also removed from #15542
-
- 13 6月, 2014 1 次提交
-
-
由 Paul Grayson 提交于
In tag helper, honor html_safe on array parameters; also make safe_join more similar to Array.join by first calling flatten.
-
- 12 6月, 2014 1 次提交
-
-
由 Zuhao Wan 提交于
-
- 11 6月, 2014 3 次提交
-
-
由 Aditya Kapoor 提交于
-
由 Akshay Vishnoi 提交于
-
由 Akshay Vishnoi 提交于
-
- 10 6月, 2014 1 次提交
-
-
由 Jiri Pospisil 提交于
Bring cache_digests:* rake tasks up-to-date with the API changes introduced in 637bb726
-
- 07 6月, 2014 3 次提交
-
-
由 Matthew Draper 提交于
/cc @tenderlove
-
由 Aaron Patterson 提交于
-
由 Gaurav Sharma 提交于
-
- 05 6月, 2014 3 次提交
-
-
由 Greg Molnar 提交于
-
由 Ryan Davis 提交于
reviewed: @tenderlove
-
由 Rafael Mendonça França 提交于
This reverts commit c22a253d. Reason: Our documentation assumes the assets are in the proper place and we are using the default Rails stack. With the default Rails stack and the assets being in the correct place the assets helpers uses the `/assets` prefix.
-
- 03 6月, 2014 2 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
before this change, we were allocating AS::SafeBuffer objects that were being interpolated in to a string, so the safe buffer object was being thrown away. This change only allocates a string (vs a string *and* a safebuffer) and interpolates the string. On my test application, this reduced the AS::SafeBuffer objects from 1527k per request to about 500 per request.
-
- 01 6月, 2014 1 次提交
-
-
由 Aditya Kapoor 提交于
-
- 31 5月, 2014 1 次提交
-
-
由 Manuel Meurer 提交于
Update documentation for setting asset_host to a Proc, mention that the request parameter might not be supplied [ci skip]
-