Class: Spring::Commands::Console

Inherits:
Command
  • Object
show all
Defined in:
lib/spring/commands.rb

Instance Method Summary collapse

Methods inherited from Command

preloads, #preloads, preloads=

Instance Method Details

#call(args) ⇒ Object



161
162
163
164
# File 'lib/spring/commands.rb', line 161

def call(args)
  ARGV.replace args
  ::Rails::Console.start(::Rails.application)
end

#descriptionObject



166
167
168
# File 'lib/spring/commands.rb', line 166

def description
  "Start the Rails console."
end

#setupObject



157
158
159
# File 'lib/spring/commands.rb', line 157

def setup
  require "rails/commands/console"
end