Sha256: 24cfcb69addd96824d9b03c5684b80727bbe698a8e028b130be06f83843e1cf8

Contents?: true

Size: 462 Bytes

Versions: 12

Compression:

Stored size: 462 Bytes

Contents

module Authlogic
  class SessionGenerator < Rails::Generators::Base
    source_root File.expand_path('../templates', __FILE__)
    argument :session_class_name, :type => :string, :default => "Session"

    def self.banner
      "rails generate authlogic:#{generator_name} #{self.arguments.map{ |a| a.usage }.join(' ')} [options]"
    end
  
    def generate_session
      template "session.rb", "app/models/#{session_class_name.underscore}.rb"
    end
  end
end

Version data entries

12 entries across 12 versions & 4 rubygems

Version Path
authlogic-3.1.3 lib/generators/authlogic/session_generator.rb
authlogic-3.1.2 lib/generators/authlogic/session_generator.rb
authlogic-3.1.1 lib/generators/authlogic/session_generator.rb
nulogy-authlogic-3.1.0.1 lib/generators/authlogic/session_generator.rb
Empact-authlogic-3.1.0 lib/generators/authlogic/session_generator.rb
authlogic-3.1.0 lib/generators/authlogic/session_generator.rb
Empact-authlogic-3.0.3 lib/generators/authlogic/session_generator.rb
antlypls-authlogic-3.0.3 lib/generators/authlogic/session_generator.rb
authlogic-3.0.3 lib/generators/authlogic/session_generator.rb
authlogic-3.0.2 lib/generators/authlogic/session_generator.rb
authlogic-3.0.1 lib/generators/authlogic/session_generator.rb
authlogic-3.0.0 lib/generators/authlogic/session_generator.rb