Class: Authlogic::SessionGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/authlogic/session/session_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



5
6
7
# File 'lib/generators/authlogic/session/session_generator.rb', line 5

def self.source_root
  @_auth_source ||= File.expand_path("../templates", __FILE__)
end

Instance Method Details

#copy_initializerObject



9
10
11
12
# File 'lib/generators/authlogic/session/session_generator.rb', line 9

def copy_initializer
  class_collisions class_name
  template 'session.rb', File.join('app/models', class_path, "#{file_name}.rb")
end