Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

app_generator option should be skip_activerecord not no_activerecord

(Thor actually accepts both, the patch was applied to improve readability)

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
commit c3d19eb950578ff4a20692bd1b20ee074789818e 1 parent 8e57dee
@stve stve authored josevalim committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/generators/rails/app/app_generator.rb
View
2  railties/lib/rails/generators/rails/app/app_generator.rb
@@ -46,7 +46,7 @@ class AppGenerator < Base
def initialize(*args)
super
- if !options[:no_activerecord] && !DATABASES.include?(options[:database])
+ if !options[:skip_activerecord] && !DATABASES.include?(options[:database])
raise Error, "Invalid value for --database option. Supported for preconfiguration are: #{DATABASES.join(", ")}."
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.