Class: ActiveAuthentication::ViewsGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_viewsObject



8
9
10
11
12
13
14
15
16
# File 'lib/generators/active_authentication/views/views_generator.rb', line 8

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