cebd381d0d
tex_list, Rails 2.3.10, etc.
7 lines
280 B
Ruby
7 lines
280 B
Ruby
unless $gems_rake_task
|
|
if !(Rails::VERSION::MAJOR.to_i >= 2 && Rails::VERSION::MINOR.to_i >=3 && Rails::VERSION::TINY.to_i >=8)
|
|
$stderr.puts "rails_xss requires Rails 2.3.8 or later. Please upgrade to enable automatic HTML safety."
|
|
else
|
|
require 'rails_xss'
|
|
end
|
|
end
|