Skip to content
Browse files

fixed a problem where acl9 files weren't getting loaded correctly

  • Loading branch information...
1 parent 10901dc commit 238355b788dc01890358a7ded1d82614671005cd @adamgamble adamgamble committed Dec 26, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/xrono/engine.rb
View
5 lib/xrono/engine.rb
@@ -1,6 +1,9 @@
require 'rails'
require 'devise'
require 'acl9'
+require 'acl9/model_extensions'
+require 'acl9/controller_extensions'
+require 'acl9/helpers'
require 'gravtastic'
require 'haml'
require 'paperclip'
@@ -37,4 +40,6 @@ def root
require File.join(Xrono.root.to_s, '..', 'app', 'controllers', 'xrono', 'application_controller')
::ApplicationController.send :helper, Xrono.helpers
end
+ ActiveRecord::Base.send(:include, Acl9::ModelExtensions)
+ ActionController::Base.send(:include, Acl9::ControllerExtensions)
end

0 comments on commit 238355b

Please sign in to comment.
Something went wrong with that request. Please try again.