require 'rails/generators/couchrest_model'

module CouchrestModel
  module Generators
    class ModelGenerator < NamedBase
      check_class_collision

      def create_model_file
        template 'model.rb', File.join('app/models', class_path, "#{file_name}.rb")
      end

      def create_module_file
        return if class_path.empty?
        template 'module.rb', File.join('app/models', "#{class_path.join('/')}.rb") if behavior == :invoke
      end
      
      hook_for :test_framework

      protected

        def parent_class_name
          "CouchRest::Model::Base"
        end

    end
  end
end

require 'rails/generators/couchrest_model'

module CouchrestModel
  module Generators
    class ModelGenerator < NamedBase
      desc %[Generates a new CouchRest::Model skeleton into app/models]

      check_class_collision

      def create_model_file
        template 'model.rb', File.join('app/models', class_path, "#{file_name}.rb")
      end

      def create_module_file
        return if class_path.empty?
        template 'module.rb', File.join('app/models', "#{class_path.join('/')}.rb") if behavior == :invoke
      end

      hook_for :test_framework

      protected

        def parent_class_name
          "CouchRest::Model::Base"
        end

    end
  end
end

Add a description to the Model generator and fix whitespace
Add a description to the Model generator and fix whitespace
