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
|
# Copy the instance variables from the current session instance into the
|
||||||
# test instance.
|
# test instance.
|
||||||
def copy_session_variables! #:nodoc:
|
def copy_session_variables! #:nodoc:
|
||||||
%w(controller response request).each do |var|
|
@controller = @integration_session.controller
|
||||||
instance_variable_set("@#{var}", @integration_session.__send__(var))
|
@response = @integration_session.response
|
||||||
end
|
@request = @integration_session.request
|
||||||
end
|
end
|
||||||
|
|
||||||
def default_url_options
|
def default_url_options
|
||||||
|
|
Loading…
Reference in a new issue