Sha256: b8f0364f14bfc851497f551d28e255ed480e0665cae4e07106b3b7947105f79a

Contents?: true

Size: 448 Bytes

Versions: 3

Compression:

Stored size: 448 Bytes

Contents

require 'spree_core'
require 'spree_editor_hooks'

module SpreeEditor
  class Engine < Rails::Engine
    config.autoload_paths += %W(#{config.root}/lib)

    def self.activate
      Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
        Rails.env.production? ? require(c) : load(c)
      end
    end

    config.to_prepare &method(:activate).to_proc
  end

  EditorEngines = %w(YUIRichEditor WYMEditor TinyMCE)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_editor-0.50.1 lib/spree_editor.rb
spree_editor-0.50.0 lib/spree_editor.rb
spree_editor-0.40.0 lib/spree_editor.rb