Sha256: 822f4d90931cffac7d557620b3685754ea44cc9602936841ec6215adc74bd07e

Contents?: true

Size: 422 Bytes

Versions: 1

Compression:

Stored size: 422 Bytes

Contents

module Fullstack
  module Ckeditor
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path('../templates', __FILE__)
      
      def install_assets
        directory "ckeditor", Rails.root.join("public", "ckeditor")
      end
      
      def install_migration
        generate "migration:from Ckeditor::Asset Ckeditor::AttachmentFile Ckeditor::Picture"
      end
      
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fullstack-ckeditor-0.1.2 lib/generators/fullstack/ckeditor/install_generator.rb