Class: Socialite::Generators::ViewsGenerator

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#copy_viewsObject


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

def copy_views
  view_directory :identities
  view_directory :sessions
  view_directory :users
end

#view_directory(name) ⇒ Object (protected)


17
18
19
# File 'lib/generators/socialite/views_generator.rb', line 17

def view_directory(name)
  directory name.to_s, "app/views/socialite/#{name}"
end