message for regular redirect

This commit is contained in:
John Bintz 2010-05-12 14:02:22 -04:00
parent 8345a5ccb1
commit e667931333

View File

@ -34,6 +34,9 @@ module Apache
#
# r301 '/here', '/there' #=> Redirect permanent "/here" "/there"
def r301(*opt)
if opt.first && !opt.first.kind_of?(::String)
raise "First parameter should be a String. Did you mean to wrap this in a rewrites block? #{opt.first}"
end
self << "Redirect permanent #{quoteize(*opt) * " "}"
end
end