Browse files

Updated the views generator to respect the rails :template_engine opt…

…ion.

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 2104397 commit cb83c66139edb937a1f16c7c50c76e74bbb4c95a Fred Wu committed with josevalim Aug 6, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/generators/devise/views_generator.rb
View
2 lib/generators/devise/views_generator.rb
@@ -7,7 +7,7 @@ class ViewsGenerator < Rails::Generators::Base
argument :scope, :required => false, :default => nil,
:desc => "The scope to copy views to"
- class_option :template_engine, :type => :string, :aliases => "-t", :default => "erb",
+ class_option :template_engine, :type => :string, :aliases => "-t",
:desc => "Template engine for the views. Available options are 'erb' and 'haml'."
def copy_views

0 comments on commit cb83c66

Please sign in to comment.