Sha256: f80348db2cdba483acbeb77d67d2e266ffcf336a4c1212807cb2f937d4ea8ebc

Contents?: true

Size: 457 Bytes

Versions: 22

Compression:

Stored size: 457 Bytes

Contents

require 'generators/authlogic'

module Authlogic
  module Generators
    class SessionGenerator < Base
      desc "Builds an Authlogic session model"
      
      check_class_collision
      
      def create_session_file
        template 'session.rb', File.join('app', 'models', class_path, "#{file_name}.rb")
      end
      
      # HACK: make test_framework generator for this generator.
      hook_for :test_framework, :as => :model
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rails3-generators-0.17.6 lib/generators/authlogic/session/session_generator.rb
rails3-generators-0.17.5 lib/generators/authlogic/session/session_generator.rb
rails3-generators-0.17.4 lib/generators/authlogic/session/session_generator.rb
rails3-generators-0.17.3 lib/generators/authlogic/session/session_generator.rb
rails3-generators-0.17.2 lib/generators/authlogic/session/session_generator.rb
rails3-generators-0.17.1 lib/generators/authlogic/session/session_generator.rb
rails3-generators-0.17.0 lib/generators/authlogic/session/session_generator.rb
rails3-generators-0.16.1 lib/generators/authlogic/session/session_generator.rb
rails3-generators-0.16.0 lib/generators/authlogic/session/session_generator.rb
rails3-generators-0.15.0 lib/generators/authlogic/session/session_generator.rb
rails3-generators-0.14.0 lib/generators/authlogic/session/session_generator.rb
rails3-generators-0.13.0 lib/generators/authlogic/session/session_generator.rb
rails3-generators-0.12.1 lib/generators/authlogic/session/session_generator.rb
rails3-generators-0.12.0 lib/generators/authlogic/session/session_generator.rb
rails3-generators-0.11.0 lib/generators/authlogic/session/session_generator.rb
rails3-generators-0.10.3 lib/generators/authlogic/session/session_generator.rb
rails3-generators-0.10.2 lib/generators/authlogic/session/session_generator.rb
rails3-generators-0.10.1 lib/generators/authlogic/session/session_generator.rb
rails3-generators-0.10.0 lib/generators/authlogic/session/session_generator.rb
rails3-generators-0.9.2 lib/generators/authlogic/session/session_generator.rb