mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
remove meta programming
there's really no benefit here. It's the same number of lines without the meta programming and is faster
This commit is contained in:
parent
4cf3b8ac47
commit
b03b09dc86
1 changed files with 3 additions and 3 deletions
|
@ -457,9 +457,9 @@ module ActionDispatch
|
|||
# Copy the instance variables from the current session instance into the
|
||||
# test instance.
|
||||
def copy_session_variables! #:nodoc:
|
||||
%w(controller response request).each do |var|
|
||||
instance_variable_set("@#{var}", @integration_session.__send__(var))
|
||||
end
|
||||
@controller = @integration_session.controller
|
||||
@response = @integration_session.response
|
||||
@request = @integration_session.request
|
||||
end
|
||||
|
||||
def default_url_options
|
||||
|
|
Loading…
Reference in a new issue