Sha256: c99fac4e56254316b6da472c19f3a0a99ed1930ce50ce370d07be0147705c0d8

Contents?: true

Size: 311 Bytes

Versions: 205

Compression:

Stored size: 311 Bytes

Contents

# frozen_string_literal: true

require "rails/command"

aliases = {
  "g"  => "generate",
  "d"  => "destroy",
  "c"  => "console",
  "s"  => "server",
  "db" => "dbconsole",
  "r"  => "runner",
  "t"  => "test"
}

command = ARGV.shift
command = aliases[command] || command

Rails::Command.invoke command, ARGV

Version data entries

205 entries across 191 versions & 15 rubygems

Version Path
railties-7.0.7.1 lib/rails/commands.rb
railties-6.1.7.5 lib/rails/commands.rb
railties-7.0.7 lib/rails/commands.rb
railties-7.0.6 lib/rails/commands.rb
railties-7.0.5.1 lib/rails/commands.rb
railties-6.1.7.4 lib/rails/commands.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/railties-7.0.2.3/lib/rails/commands.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/commands.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/railties-7.0.3.1/lib/rails/commands.rb
railties-7.0.5 lib/rails/commands.rb
railties-7.0.4.3 lib/rails/commands.rb
railties-6.1.7.3 lib/rails/commands.rb
railties-6.1.7.2 lib/rails/commands.rb
railties-7.0.4.2 lib/rails/commands.rb
railties-7.0.4.1 lib/rails/commands.rb
railties-6.1.7.1 lib/rails/commands.rb
railties-6.0.6.1 lib/rails/commands.rb
railties-7.0.4 lib/rails/commands.rb
railties-6.1.7 lib/rails/commands.rb
railties-6.0.6 lib/rails/commands.rb