stffn / declarative_authorization

An unmaintained authorization plugin for Rails. Please fork to support current versions of Rails
MIT License
1.24k stars 233 forks source link

can't call Authorization::activate_authorization_rules_browser #180

Open abbood opened 11 years ago

abbood commented 11 years ago

while trying to install fedena.. my code crashes here ~/.rvm/gems/ruby-1.8.7-p371/gems/declarative_authorization-0.5.1/config/routes.rb:5:

4 routes.draw do |map|
5   if Authorization::activate_authorization_rules_browser?
6     map.resources :authorization_rules, :only => [:index],
7         :collection => {:graph => :get, :change => :get, :suggest_change => :get}
8     map.resources :authorization_usages, :only => :index
9   end

how come? for more details about my environment etc see question here: http://stackoverflow.com/questions/16162610/declarative-authorization-cant-call-authorizationactivate-authorization-rules