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