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-5.0.1 lib/generators/hyrax/collection_generator.rb
hyrax-5.0.0 lib/generators/hyrax/collection_generator.rb
hyrax-5.0.0.rc3 lib/generators/hyrax/collection_generator.rb
hyrax-5.0.0.rc2 lib/generators/hyrax/collection_generator.rb
hyrax-5.0.0.rc1 lib/generators/hyrax/collection_generator.rb
hyrax-3.6.0 lib/generators/hyrax/collection_generator.rb
hyrax-4.0.0 lib/generators/hyrax/collection_generator.rb
hyrax-4.0.0.rc3 lib/generators/hyrax/collection_generator.rb
hyrax-4.0.0.rc2 lib/generators/hyrax/collection_generator.rb
hyrax-4.0.0.rc1 lib/generators/hyrax/collection_generator.rb
hyrax-3.5.0 lib/generators/hyrax/collection_generator.rb
hyrax-4.0.0.beta2 lib/generators/hyrax/collection_generator.rb
hyrax-3.4.2 lib/generators/hyrax/collection_generator.rb
hyrax-4.0.0.beta1 lib/generators/hyrax/collection_generator.rb
hyrax-3.4.1 lib/generators/hyrax/collection_generator.rb
hyrax-3.4.0 lib/generators/hyrax/collection_generator.rb
hyrax-3.3.0 lib/generators/hyrax/collection_generator.rb
hyrax-3.2.0 lib/generators/hyrax/collection_generator.rb
hyrax-3.1.0 lib/generators/hyrax/collection_generator.rb
hyrax-3.0.2 lib/generators/hyrax/collection_generator.rb