Sha256: 6fef34d2221bb2a7051f2d5101fe4b0a73b865613868c6be11bbc00fc8edb9d2

Contents?: true

Size: 446 Bytes

Versions: 4

Compression:

Stored size: 446 Bytes

Contents

# -*- encoding : utf-8 -*-

require 'rails/generators/guacamole_generator'

module Guacamole
  module Generators
    class CollectionGenerator < Base
      desc 'Creates a Guacamole collection'

      check_class_collision suffix: 'Collection'

      def create_collection_file
        template 'collection.rb.tt', File.join('app/collections', class_path, "#{file_name}_collection.rb")
      end

      hook_for :test_framework
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
guacamole-0.4.0 lib/rails/generators/guacamole/collection/collection_generator.rb
guacamole-0.3.0 lib/rails/generators/guacamole/collection/collection_generator.rb
guacamole-0.2.0 lib/rails/generators/guacamole/collection/collection_generator.rb
guacamole-0.1.0 lib/rails/generators/guacamole/collection/collection_generator.rb