Sha256: a750a2ec453301f606f5b32d6c8e0fa73b5d35516df1c06470cb1bee17ae39d4
Contents?: true
Size: 586 Bytes
Versions: 2
Compression:
Stored size: 586 Bytes
Contents
module Ueditor::Rails class Engine < ::Rails::Engine config.ueditor = ActiveSupport::OrderedOptions.new # Set an explicit base path for ueditor assets (usually defaults to /assets/ueditor) config.ueditor.base = nil initializer "precompile", :group => :all do |app| app.config.assets.precompile << "ueditor.js" end def self.base config.ueditor.base || default_base end def self.default_base File.join(Rails.application.config.relative_url_root || "", Rails.application.config.assets.prefix || "/", "ueditor") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ueditor-rails-1.2.5.3 | lib/ueditor/rails/engine.rb |
ueditor-rails-1.2.5.1 | lib/ueditor/rails/engine.rb |