aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorschneems <richard.schneeman@gmail.com>2017-03-14 17:16:32 -0500
committerschneems <richard.schneeman@gmail.com>2017-03-14 17:23:17 -0500
commitad44d7a054f3897154d5c275ddecade4032d0d54 (patch)
tree2ad99a5a7c5edbe79a36c815653c34a9e4edf075 /activerecord/test/cases
parent410f876dad26273f7008e0123830aae6b075529e (diff)
downloadrails-ad44d7a054f3897154d5c275ddecade4032d0d54.tar.gz
rails-ad44d7a054f3897154d5c275ddecade4032d0d54.tar.bz2
rails-ad44d7a054f3897154d5c275ddecade4032d0d54.zip
Raise when using a bad symlink
There was a case where a dev made a symlink that worked on some machines and not on others. The issue manifested itself on a machine with `RAILS_ENV=staging` as the had their `config/environments/staging.rb` symlinked to another config file. The behavior was very hard to track down. Current behavior: If you use a bad symlink in a file, you get no warnings or failures or anything. If you have a bad symlink it just ignores the file as if it didn't exist (`File.exist?` returns false for a bad symlink). Patch behavior: With this patch when a file is not present we check if a symlink exists. If it does, that indicates there is a bad symlink and we should raise ``` File "config/environments/staging.rb" is a symlink that does not point to a valid file ```
Diffstat (limited to 'activerecord/test/cases')
0 files changed, 0 insertions, 0 deletions