Sha256: 58908bd210ba328ffdba008d1c69746ac86b7e45292b1ca87ed40aa2e416bc90

Contents?: true

Size: 529 Bytes

Versions: 3

Compression:

Stored size: 529 Bytes

Contents

require 'rails'
require 'rails/generators/active_record'

module Coalla
  module Cms
    module FileUploads
      class InstallGenerator < ActiveRecord::Generators::Base
        argument :name, type: :string, default: ""
        source_root File.expand_path("../templates", __FILE__)
        class_option :copy, type: :boolean, default: false, description: "Copy all files to project"

        def copy_files
          migration_template "migration.rb", "db/migrate/create_file_upload.rb"
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
coalla-cms-0.7.0.0 lib/generators/coalla/cms/file_uploads/install_generator.rb
coalla-cms-0.6.1.1 lib/generators/coalla/cms/file_uploads/install_generator.rb
coalla-cms-0.6.0.9 lib/generators/coalla/cms/file_uploads/install_generator.rb