Sha256: 20957949e44931f4f6f5a22dd7e1148026448ba76b831a48296d18e9261aa490

Contents?: true

Size: 717 Bytes

Versions: 1

Compression:

Stored size: 717 Bytes

Contents

module ActiveAdmin
  module Editor
    class Engine < ::Rails::Engine
      engine_name 'active_admin_editor'

      ActiveAdmin.application.class_eval do
        def editor; ActiveAdmin::Editor.configuration end
      end

      initializer 'active_admin.editor' do |app|
        app.config.assets.precompile += [
          'active_admin/editor.js',
          'active_admin/editor.css',
          'active_admin/editor/wysiwyg.css'
        ]

        ActiveAdmin.setup do |config|
          config.register_javascript 'active_admin/editor.js'
          config.register_stylesheet 'active_admin/editor.css'
          config.register_stylesheet 'active_admin/editor/wysiwyg.css'
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_admin_editor-1.0.4 lib/active_admin/editor/engine.rb