instance method
new_session
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v3.1.12Signature
new_session()
create a new session. If a block is given, the new session will be yielded to the block before being returned.
Source
# File railties/lib/console_app.rb, line 17
def new_session
session = ActionController::Integration::Session.new
yield session if block_given?
session
end
Defined in railties/lib/console_app.rb line 17
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Object