Sha256: 2e5428145e009879eb8bd7fb3806da43cb6388a4f60c7e9ac53480c7248ab9ce

Contents?: true

Size: 391 Bytes

Versions: 8

Compression:

Stored size: 391 Bytes

Contents

module ActiveAdmin
  module Generators
    class EditorGenerator < Rails::Generators::NamedBase
      desc "Installs the wysiwyg css file for the editor"
      argument :name, type: :string, default: 'none'

      source_root File.expand_path('../templates', __FILE__)
      
      def copy_wysiwyg_css
        template 'wysiwyg.css', 'public/assets/wysiwyg.css'
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
active_admin_editor-0.3.6 lib/generators/active_admin/editor/editor_generator.rb
active_admin_editor-0.3.5 lib/generators/active_admin/editor/editor_generator.rb
active_admin_editor-0.3.4 lib/generators/active_admin/editor/editor_generator.rb
active_admin_editor-0.3.3 lib/generators/active_admin/editor/editor_generator.rb
active_admin_editor-0.3.2 lib/generators/active_admin/editor/editor_generator.rb
active_admin_editor-0.3.1 lib/generators/active_admin/editor/editor_generator.rb
active_admin_editor-0.3.0 lib/generators/active_admin/editor/editor_generator.rb
active_admin_editor-0.2.4 lib/generators/active_admin/editor/editor_generator.rb