Sha256: 305071574b8c89f9ae21a7cf1afac8094b66d2b6f6a9701f158c00225f0132e8

Contents?: true

Size: 642 Bytes

Versions: 1

Compression:

Stored size: 642 Bytes

Contents

require "ueditor_rails/engine"

module UeditorRails
  autoload :Util, 'ueditor_rails/util'

  module Helpers
    autoload :ViewHelper, 'ueditor_rails/helpers/view_helper'
    autoload :FormHelper, 'ueditor_rails/helpers/form_helper'
    autoload :FormBuilder, 'ueditor_rails/helpers/form_builder'
  end

  class<< self
    def root_path
      @root_path ||= Pathname.new(File.dirname(File.expand_path('../', __FILE__)))
    end

    def assets
      @assets ||= Util.select_assets << 'ckeditor/init.js'
    end

    def ueditor_base_path
      @ueditor_base_path ||= self.root_path.join('vendor/assets/javascripts/ueditor')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ueditor_rails-0.0.1 lib/ueditor_rails.rb