From 0d117fb710b0ad882a06a7837bed9991423103f1 Mon Sep 17 00:00:00 2001 From: Espen Antonsen Date: Mon, 11 Apr 2011 16:38:14 +0800 Subject: [PATCH] no rails3 warning --- vendor/plugins/acts_as_permissible/init.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/plugins/acts_as_permissible/init.rb b/vendor/plugins/acts_as_permissible/init.rb index d16526e..d672ff1 100644 --- a/vendor/plugins/acts_as_permissible/init.rb +++ b/vendor/plugins/acts_as_permissible/init.rb @@ -1,6 +1,6 @@ # Include hook code here begin - require "#{RAILS_ROOT}/lib/acts_as_permissible" + require "#{Rails.root.to_s}/lib/acts_as_permissible" ActiveRecord::Base.send(:include, NoamBenAri::Acts::Permissible) rescue MissingSourceFile => m