Skip to content

Commit b7bdacf

Browse files
kossnocorpjosevalim
authored andcommitted
Added rails command aliases (s g c db) to reserved words in app generator [rails#4602 state:resolved]
Signed-off-by: José Valim <[email protected]>
1 parent 621ee37 commit b7bdacf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

railties/lib/rails/generators/rails/app/app_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ module Generators
149149
# can change in Ruby 1.8.7 when we FileUtils.cd.
150150
RAILS_DEV_PATH = File.expand_path("../../../../../..", File.dirname(__FILE__))
151151

152-
RESERVED_NAMES = %w[generate console server dbconsole
152+
RESERVED_NAMES = %w[generate g console c server s dbconsole db
153153
application destroy benchmarker profiler
154154
plugin runner test]
155155

0 commit comments

Comments
 (0)