1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00
heartcombo--devise/lib/generators/devise_views/devise_views_generator.rb
Fred Wu cd17099401 Create the devise_views directory in './app/views' instead of the root.
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-10 15:29:30 +01:00

15 lines
No EOL
372 B
Ruby

class DeviseViewsGenerator < Rails::Generators::Base
desc "Copies all Devise views to your application."
def self.source_root
@_devise_source_root ||= File.expand_path("../../../../app/views", __FILE__)
end
def copy_views
directory "devise", "app/views/devise"
end
def say_restart_server
say "Views copied. Please restart your server."
end
end