diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-06-05 10:34:40 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-06-05 10:34:40 -0500 |
commit | c2c8ef57d6f00d1c22743dc43746f95704d67a95 (patch) | |
tree | 8de6689447cf2878b3d727a6631535c961d560ce /actionpack/lib/action_view/testing | |
parent | 9f19322b1f9eee99b5f8f5a2e85b1e3a27f82c64 (diff) | |
download | rails-c2c8ef57d6f00d1c22743dc43746f95704d67a95.tar.gz rails-c2c8ef57d6f00d1c22743dc43746f95704d67a95.tar.bz2 rails-c2c8ef57d6f00d1c22743dc43746f95704d67a95.zip |
Remove trailing white-spaces
Diffstat (limited to 'actionpack/lib/action_view/testing')
-rw-r--r-- | actionpack/lib/action_view/testing/resolvers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/testing/resolvers.rb b/actionpack/lib/action_view/testing/resolvers.rb index 773dfcbb1d..7afa2fa613 100644 --- a/actionpack/lib/action_view/testing/resolvers.rb +++ b/actionpack/lib/action_view/testing/resolvers.rb @@ -34,7 +34,7 @@ module ActionView #:nodoc: templates << Template.new(source, _path, handler, :virtual_path => path.virtual, :format => format, :updated_at => updated_at) end - + templates.sort_by {|t| -t.identifier.match(/^#{query}$/).captures.reject(&:blank?).size } end end |