@@ -10,7 +10,7 @@ class RailsHelperBase < IRB::HelperMethod::Base
10
10
end
11
11
12
12
class ControllerHelper < RailsHelperBase
13
- description "Gets the helper methods available to the controller ."
13
+ description "Gets helper methods available to ApplicationController ."
14
14
15
15
# This method assumes an +ApplicationController+ exists, and that it extends ActionController::Base.
16
16
def execute
@@ -19,7 +19,7 @@ def execute
19
19
end
20
20
21
21
class ControllerInstance < RailsHelperBase
22
- description "Gets a new instance of a controller object ."
22
+ description "Gets a new instance of ApplicationController ."
23
23
24
24
# This method assumes an +ApplicationController+ exists, and that it extends ActionController::Base.
25
25
def execute
@@ -28,7 +28,7 @@ def execute
28
28
end
29
29
30
30
class NewSession < RailsHelperBase
31
- description "Create a new session. If a block is given, the new session will be yielded to the block before being returned ."
31
+ description "[Deprecated] Please use `app(true)` instead ."
32
32
33
33
def execute ( *)
34
34
app = Rails . application
@@ -43,7 +43,7 @@ def execute(*)
43
43
end
44
44
45
45
class AppInstance < NewSession
46
- description "Reference the global 'app' instance, created on demand. To recreate the instance, pass a non-false value as the parameter ."
46
+ description "Creates a new ActionDispatch::Integration::Session and memoizes it. Use `app(true)` to create a new instance ."
47
47
48
48
def execute ( create = false )
49
49
@app_integration_instance = nil if create
@@ -55,7 +55,7 @@ class Reloader < IRB::Command::Base
55
55
include ConsoleMethods
56
56
57
57
category "Rails console"
58
- description "Reloads the environment ."
58
+ description "Reloads the Rails application ."
59
59
60
60
def execute ( *)
61
61
puts "Reloading..."
0 commit comments