diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-01 08:37:07 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-01 08:37:07 +0000 |
commit | 124cca3af0300c1071ecd0576f138a42fcd8aa4d (patch) | |
tree | ceb1ab9e0dcb837ce48826825223e7c2e7e3c423 /app/controllers/settings_controller.rb | |
parent | 7faf77804d17db13112cb53de95871aeb561fb2b (diff) | |
download | redmine-124cca3af0300c1071ecd0576f138a42fcd8aa4d.tar.gz redmine-124cca3af0300c1071ecd0576f138a42fcd8aa4d.zip |
Text formatting drop down disabled if RedCloth is not available (system settings).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@497 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/settings_controller.rb')
-rw-r--r-- | app/controllers/settings_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/settings_controller.rb b/app/controllers/settings_controller.rb index 229a4ab3c..fd094adb3 100644 --- a/app/controllers/settings_controller.rb +++ b/app/controllers/settings_controller.rb @@ -29,5 +29,6 @@ class SettingsController < ApplicationController params[:settings].each { |name, value| Setting[name] = value } redirect_to :action => 'edit' and return end + @textile_available = ActionView::Helpers::TextHelper.method_defined?("textilize") end end |