diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-01-25 15:12:16 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-01-25 15:12:16 +1100 |
commit | 4e74f0fcdcb0820865689cc0595cf0c83aee7cab (patch) | |
tree | 1fd4a83516acaad73d88f0d7f011caf045ab5a17 /vendor/plugins/rails_xss/init.rb | |
parent | 65680320bee44812394041492c8492e95b1a3d78 (diff) | |
parent | a67666e34c280d2b9eb613f57d96ba4ee5fcd749 (diff) |
Merge branch 'rails_xss' into rails-3-spike
Conflicts:
Gemfile
Gemfile.lock
config/environment.rb
lib/i18n_fixes.rb
Diffstat (limited to 'vendor/plugins/rails_xss/init.rb')
-rw-r--r-- | vendor/plugins/rails_xss/init.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/plugins/rails_xss/init.rb b/vendor/plugins/rails_xss/init.rb new file mode 100644 index 000000000..533eb1f36 --- /dev/null +++ b/vendor/plugins/rails_xss/init.rb @@ -0,0 +1,9 @@ +unless $gems_rake_task + if Rails::VERSION::MAJOR >= 3 + $stderr.puts "You don't need to install rails_xss as a plugin for Rails 3 and after." + elsif Rails::VERSION::MAJOR <= 2 && Rails::VERSION::MINOR <= 3 && Rails::VERSION::TINY <= 7 + $stderr.puts "rails_xss requires Rails 2.3.8 or later. Please upgrade to enable automatic HTML safety." + else + require 'rails_xss' + end +end |