no rails3 warning

This commit is contained in:
Espen Antonsen 2011-04-11 16:38:14 +08:00
parent dff04b470f
commit 0d117fb710

View file

@ -1,6 +1,6 @@
# Include hook code here # Include hook code here
begin begin
require "#{RAILS_ROOT}/lib/acts_as_permissible" require "#{Rails.root.to_s}/lib/acts_as_permissible"
ActiveRecord::Base.send(:include, NoamBenAri::Acts::Permissible) ActiveRecord::Base.send(:include, NoamBenAri::Acts::Permissible)
rescue MissingSourceFile => m rescue MissingSourceFile => m