1
0
Fork 0
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:
Aaron Patterson 2015-02-12 12:11:19 -08:00
parent 4cf3b8ac47
commit b03b09dc86

View file

@ -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