lib/facebooker/rails/facebook_url_rewriting.rb in mmangino-facebooker-1.0.16 vs lib/facebooker/rails/facebook_url_rewriting.rb in mmangino-facebooker-1.0.19
- old
+ new
@@ -1,9 +1,17 @@
module ::ActionController
- class AbstractRequest
- def relative_url_root
- Facebooker.path_prefix
- end
+ if Rails.version < '2.3'
+ class AbstractRequest
+ def relative_url_root
+ Facebooker.path_prefix
+ end
+ end
+ else
+ class Request
+ def relative_url_root
+ Facebooker.path_prefix
+ end
+ end
end
class Base
def self.relative_url_root
Facebooker.path_prefix