diff options
author | Sergey Nartimov <just.lest@gmail.com> | 2012-01-07 14:44:47 +0300 |
---|---|---|
committer | Sergey Nartimov <just.lest@gmail.com> | 2012-01-07 14:44:47 +0300 |
commit | 7d862359d0ebe8c173ef2e069dcbf2c69f43d798 (patch) | |
tree | 551a9c764b0f182602a59abcac286c95a0f627c0 /actionpack/test | |
parent | ba168e8f067d72f7a21691f4cfdcd40432135246 (diff) | |
download | rails-7d862359d0ebe8c173ef2e069dcbf2c69f43d798.tar.gz rails-7d862359d0ebe8c173ef2e069dcbf2c69f43d798.tar.bz2 rails-7d862359d0ebe8c173ef2e069dcbf2c69f43d798.zip |
get rid of using instance_variable_names method from AS
- instance_variables return symbols in 1.9
- there is instance_variable_defined? method
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/filters_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/controller/filters_test.rb b/actionpack/test/controller/filters_test.rb index d5e3da4d88..9ad0dc75f5 100644 --- a/actionpack/test/controller/filters_test.rb +++ b/actionpack/test/controller/filters_test.rb @@ -16,7 +16,7 @@ class ActionController::Base def assigns(key = nil) assigns = {} - instance_variable_names.each do |ivar| + instance_variables.each do |ivar| next if ActionController::Base.protected_instance_variables.include?(ivar) assigns[ivar[1..-1]] = instance_variable_get(ivar) end |