Class: Authlogic::SessionGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Authlogic::SessionGenerator
- Defined in:
- lib/generators/authlogic/session_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.banner ⇒ Object
6 7 8 |
# File 'lib/generators/authlogic/session_generator.rb', line 6 def self. "rails generate authlogic:#{generator_name} #{self.arguments.map{ |a| a.usage }.join(' ')} [options]" end |
Instance Method Details
#generate_session ⇒ Object
10 11 12 |
# File 'lib/generators/authlogic/session_generator.rb', line 10 def generate_session template "session.rb", "app/models/#{session_class_name.underscore}.rb" end |