Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

CanCan::ImplementationRemoved (The skip_load_resource method has been removed, use skip_load_and_authorize_resource instead #1010

Open
itsmechlark opened this issue Jun 21, 2014 · 2 comments

Comments

@itsmechlark
Copy link

Hi,

I added this in my controller:
skip_load_and_authorize_resource :only => [:avatar]
but still CanCan raise an exception CanCan::ImplementationRemoved (The skip_load_resource method has been removed, use skip_load_and_authorize_resource instead.). When I check the https://github.com/ryanb/cancan/blob/2.0/lib/cancan/controller_additions.rb#L189, the method is still using:


def skip_load_and_authorize_resource(*args)
        skip_load_resource(*args)
        skip_authorize_resource(*args)
      end

which raises an exception.


CanCan::ImplementationRemoved (The skip_load_resource method has been removed, use skip_load_and_authorize_resource instead.):
  app/controllers/users_controller.rb:6:in `'
  app/controllers/users_controller.rb:2:in `'


  Rendered /Users/itsmechlark/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
  Rendered /Users/itsmechlark/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.2ms)
  Rendered /Users/itsmechlark/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (17.0ms)

Reference: #465

@xhoy
Copy link

xhoy commented Jul 1, 2014

Thanks for your submission! The ryanb/cancan repository has been inactive since Sep 06, 2013.
Since only Ryan himself has commit permissions, the CanCan project is on a standstill.

CanCan has many open issues, including missing support for Rails 4. To keep CanCan alive, an active fork exists at cancancommunity/cancancan. The new gem is cancancan. More info is available at #994.

If your pull request or issue is still applicable, it would be really appreciated if you resubmit it to CanCanCan.

We hope to see you on the other side!

@vietqhoang
Copy link

Is it necessary to spam every open issue with the same message concerning the active fork? Each post alerts each person on the watch list.. I count 20+ emails so far and they are still coming in.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants