Class: Mongoid::Command::DbconsoleCommand
- Inherits:
-
Rails::Command::Base
- Object
- Rails::Command::Base
- Mongoid::Command::DbconsoleCommand
- Includes:
- Rails::Command::EnvironmentArgument
- Defined in:
- lib/railsmdb/commands/dbconsole/dbconsole_command.rb
Overview
The implementation of the ‘dbconsole` command for Railsmdb.
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
14 15 16 17 |
# File 'lib/railsmdb/commands/dbconsole/dbconsole_command.rb', line 14 def perform require_application_and_environment! exec_mongosh_with(Rails.env || 'default') end |