Class: ReviseAuth::Generators::ViewsGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_viewsObject



10
11
12
13
14
15
16
17
18
# File 'lib/generators/revise_auth/views_generator.rb', line 10

def copy_views
  if options[:views]
    options[:views].each do |directory|
      directory "app/views/revise_auth/#{directory}"
    end
  else
    directory "app/views/revise_auth"
  end
end