Class: Authlogic::SessionGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details



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

def self.banner
  "rails generate authlogic:#{generator_name} #{self.arguments.map{ |a| a.usage }.join(' ')} [options]"
end

Instance Method Details

#generate_sessionObject



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