Permalink
Browse files

Backport the xss_safe? method for plugin authors targetting 2.3 and m…

…aster
  • Loading branch information...
1 parent e10b0dd commit 459749c30c48cc536fe81ed1ff66da0c96cca8be @NZKoz NZKoz committed Oct 15, 2009
Showing with 5 additions and 0 deletions.
  1. +5 −0 actionpack/lib/action_view/base.rb
View
5 actionpack/lib/action_view/base.rb
@@ -187,6 +187,11 @@ class << self
@@cache_template_loading = nil
cattr_accessor :cache_template_loading
+ # :nodoc:
+ def self.xss_safe?
+ false
+ end
+
def self.cache_template_loading?
ActionController::Base.allow_concurrency || (cache_template_loading.nil? ? !ActiveSupport::Dependencies.load? : cache_template_loading)
end

0 comments on commit 459749c

Please sign in to comment.