mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-28 03:00:29 -04:00
15 lines
352 B
Ruby
15 lines
352 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"
|
|
end
|
|
|
|
def say_restart_server
|
|
say "Views copied. Please restart your server."
|
|
end
|
|
end |