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