if you need to use rolerequirement with authlogic you just need a few tweeks to the current code in role requirement
in your rails project load the file “/lib/role_requirement_system.rb” into your editor
comment the line in this method on line 106
module RoleSecurityInstanceMethods
def self.included(klass)
#raise "Because role_requirement extends acts_as_authenticated, You must include AuthenticatedSystem first before including RoleRequirementSystem!" unless klass.included_modules.include?(AuthenticatedSystem)
end
rubynyc said,
September 2, 2009 at 11:05 pm
Sucks, you don’t need it role your own, Authlogic has a built in for require user and require no user to be used with a before filter only / except actions