1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Updated the views generator to respect the rails :template_engine option.

This commit is contained in:
Fred Wu 2010-08-06 09:13:26 +08:00 committed by José Valim
parent 01c272c692
commit 701bbf2d3c

View file

@ -7,7 +7,7 @@ module Devise
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