Skip to content

Commit

Permalink
To avoid reloading issues since injecting into ApplicationController …
Browse files Browse the repository at this point in the history
…means that we loose functionality once this class is reloaded while in development. For now default to previous behavior to avoid epic fails (this could be solved using config.to_prepare in init.rb)
  • Loading branch information
rsalvado committed Jan 20, 2010
1 parent ac601ec commit dbaae89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tiny_mce.rb
Expand Up @@ -72,7 +72,7 @@ module Base
# Include the TinyMCE methods and TinyMCE Helpers into ActionController::Base

if defined?(Rails) && defined?(ActionController)
ApplicationController.send(:include, TinyMCE::Base)
ApplicationController.send(:helper, TinyMCE::Helpers)
ActionController::Base.send(:include, TinyMCE::Base)
ActionController::Base.send(:helper, TinyMCE::Helpers)
TinyMCE.install_or_update_tinymce
end

2 comments on commit dbaae89

@miclle
Copy link

@miclle miclle commented on dbaae89 Feb 26, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

configuration.rb row:81
@raw_options.compact!
json_options += @raw_options unless @raw_options.blank?
==== fix ie
@raw_options.compact!
@raw_options.delete('') # plug bug ,fix
json_options += @raw_options unless @raw_options.blank?

@KieranP
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey,

I was waiting on a patch for a fix someone made, but it'll have to wait I guess.

Expect a fix soon,

Regards
Kieran

Please sign in to comment.