Class: TailwindDevise::ViewsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/tailwind_devise/views_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_devise_tailwind_files_to_appObject


8
9
10
11
12
13
# File 'lib/generators/tailwind_devise/views_generator.rb', line 8

def copy_devise_tailwind_files_to_app
  devise_folder_path = "#{Rails.root}/app/views/devise"
  FileUtils.rm_rf(devise_folder_path)
  FileUtils.mkdir_p(devise_folder_path)
  directory 'devise', devise_folder_path
end