diff options
author | Yehuda Katz <wycats@Yehuda-Katz.local> | 2009-12-29 01:04:00 -0800 |
---|---|---|
committer | Yehuda Katz <wycats@Yehuda-Katz.local> | 2009-12-29 01:04:32 -0800 |
commit | cf4978313bbf908f85ff23c7a484bc856bed5181 (patch) | |
tree | 3aa059a65fa7c4cf75e83b5fa9f8b848c1cbccf9 | |
parent | 981f69639841759a558a0083cd507fa610d564ad (diff) | |
download | rails-cf4978313bbf908f85ff23c7a484bc856bed5181.tar.gz rails-cf4978313bbf908f85ff23c7a484bc856bed5181.tar.bz2 rails-cf4978313bbf908f85ff23c7a484bc856bed5181.zip |
Make sure evalled method knows where it came from
-rw-r--r-- | actionpack/lib/action_dispatch/http/mime_type.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/http/mime_type.rb b/actionpack/lib/action_dispatch/http/mime_type.rb index e681b6340d..13c0f2bad0 100644 --- a/actionpack/lib/action_dispatch/http/mime_type.rb +++ b/actionpack/lib/action_dispatch/http/mime_type.rb @@ -10,8 +10,8 @@ module Mime %w(<< concat shift unshift push pop []= clear compact! collect! delete delete_at delete_if flatten! map! insert reject! reverse! replace slice! sort! uniq!).each do |method| - module_eval <<-CODE - def #{method}(*args) + module_eval <<-CODE, __FILE__, __LINE__ + 1 + def #{method}(*) @symbols = nil super end |