Sha256: 84647079878a29233505082806b0216dceba5d1c7b76798e789a9c27d8df3cd1
Contents?: true
Size: 953 Bytes
Versions: 10
Compression:
Stored size: 953 Bytes
Contents
ActiveScaffold::Bridges.bridge "TinyMCE" do install do require File.join(File.dirname(__FILE__), "lib/tiny_mce_bridge.rb") directory = File.dirname(__FILE__) destination = File.join(Rails.root, "public/javascripts/active_scaffold/default/") if ActiveScaffold.js_framework == :jquery source = File.join(directory, "public/javascripts/jquery/tiny_mce_bridge.js") FileUtils.rm(File.join(destination, 'tiny_mce_bridge.js')) if File.exist?(File.join(destination, 'tiny_mce_bridge.js')) FileUtils.cp(source, destination) else source = File.join(directory, "public/javascripts/prototype/tiny_mce_bridge.js") FileUtils.rm(File.join(destination, 'tiny_mce_bridge.js')) if File.exist?(File.join(destination, 'tiny_mce_bridge.js')) FileUtils.cp(source, destination) end unless defined?(ACTIVE_SCAFFOLD_INSTALL_ASSETS) && ACTIVE_SCAFFOLD_INSTALL_ASSETS == false end install? do true end end
Version data entries
10 entries across 10 versions & 1 rubygems