Sha256: 482a18726fa522a58ddbc83a98f7b4b1caac0812a89938abc1b5d9f5aeed18fc

Contents?: true

Size: 411 Bytes

Versions: 25

Compression:

Stored size: 411 Bytes

Contents

# frozen_string_literal: true
require 'rails/generators'

module Hyrax
  class CollectionGenerator < Rails::Generators::Base
    source_root File.expand_path('../templates', __FILE__)

    desc 'This generator makes the following changes to your application:
   1. Creates a collection model.
'

    def create_collection
      copy_file 'app/models/collection.rb', 'app/models/collection.rb'
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
hyrax-3.0.1 lib/generators/hyrax/collection_generator.rb
hyrax-3.0.0 lib/generators/hyrax/collection_generator.rb
hyrax-3.0.0.pre.rc4 lib/generators/hyrax/collection_generator.rb
hyrax-3.0.0.pre.rc3 lib/generators/hyrax/collection_generator.rb
hyrax-3.0.0.pre.rc2 lib/generators/hyrax/collection_generator.rb