2010-05-26 07:27:49 +02:00
|
|
|
unless $gems_rake_task
|
2011-06-15 07:43:38 +02:00
|
|
|
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
|
2010-05-26 07:27:49 +02:00
|
|
|
$stderr.puts "rails_xss requires Rails 2.3.8 or later. Please upgrade to enable automatic HTML safety."
|
|
|
|
else
|
|
|
|
require 'rails_xss'
|
|
|
|
end
|
|
|
|
end
|