diff options
author | Steve Klabnik <steve@steveklabnik.com> | 2012-06-16 12:02:35 +0200 |
---|---|---|
committer | Steve Klabnik <steve@steveklabnik.com> | 2012-06-16 18:06:15 +0200 |
commit | afb053b4d388137830320ed8dd49a40dc29a962c (patch) | |
tree | b8f90fd3b0eabf92df3ef6887b1c151983cfb91f /activerecord/lib/active_record/result.rb | |
parent | c1b1956a15d3d38d0a4504e168bb69638d71e536 (diff) | |
download | rails-afb053b4d388137830320ed8dd49a40dc29a962c.tar.gz rails-afb053b4d388137830320ed8dd49a40dc29a962c.tar.bz2 rails-afb053b4d388137830320ed8dd49a40dc29a962c.zip |
Respect absolute paths in compute_source_path.
When using compute_source_path to determine the full path of an
asset, if our source begins with '/', we don't want to include
the directory. Examples are illustrative:
> compute_source_path("foo", "stylesheets", "css")
=> "/Users/steve/src/my_app/public/stylesheets/foo.css"
> compute_source_path("/foo", "stylesheets", "css")
=> "/Users/steve/src/my_app/public/foo.css"
Before this patch, the second example would return the same as the
first.
Fixes #5680.
Diffstat (limited to 'activerecord/lib/active_record/result.rb')
0 files changed, 0 insertions, 0 deletions