Skip to content

Commit

Permalink
Move fck helper to application helper
Browse files Browse the repository at this point in the history
Touch the custom config to make sure it's there
  • Loading branch information
UnderpantsGnome committed Apr 26, 2007
1 parent e919815 commit c828414
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module FckeditorHelper
module ApplicationHelper
def fckeditor( object, method, fck_options = { }, options = { } )
# setup fck_options to be passed to js constructor
width = fck_options[:width] || 'null'
Expand Down
3 changes: 3 additions & 0 deletions install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

FileUtils.rm(dest_file) rescue nil

FileUtils.touch(File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'public',
'javascripts', 'fckconfig_custom.js')))

FileUtils.cp(
File.join(File.dirname(__FILE__), 'test', 'functional', 'fckeditor_controller_test.rb'),
dest_file
Expand Down

0 comments on commit c828414

Please sign in to comment.