Class: Authlogic::SessionGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Authlogic::SessionGenerator
- Defined in:
- lib/generators/authlogic/session/session_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
5 6 7 |
# File 'lib/generators/authlogic/session/session_generator.rb', line 5 def self.source_root @_auth_source ||= File.("../templates", __FILE__) end |
Instance Method Details
#copy_initializer ⇒ Object
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 |