Sha256: a58dd41c9662b6666ba8f44da1f7acbdf433433717c2a754c8b138302fb4272d
Contents?: true
Size: 716 Bytes
Versions: 3
Compression:
Stored size: 716 Bytes
Contents
require "digestion" module TinyMCE class Railtie < Rails::Railtie def asset_root File.join(File.dirname(__FILE__), "../../assets") end rake_tasks do load "tinymce/assets.rake" end initializer "configure assets" do |app| app.config.assets.paths.unshift File.join(asset_root, 'integration') app.config.assets.paths.unshift File.join(asset_root, 'vendor') app.config.assets.digest_exclusions << "tinymce/*" app.config.assets.precompile << "tinymce/*" end initializer "static assets" do |app| if app.config.serve_static_assets app.config.assets.paths.unshift File.join(asset_root, 'precompiled') end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tinymce-rails-3.4.5.0.1 | lib/tinymce/railtie.rb |
tinymce-rails-3.4.5 | lib/tinymce/railtie.rb |
tinymce-rails-3.4.4.0.2 | lib/tinymce/railtie.rb |