-
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 remove…
-
In a freshly generated Rails app where I ran the `rails g curate -f` generator, When I run
``` bash
$ rails g curate:work Text
```
it adds a suite of 50+ tests. _Most of those tests fail_.
## To g…
-
Using active_admin together with cancan results in an error:
The accessible_by call cannot be used with a block 'can' definition
My block description does look like the following:
can :manage, …
-
### Steps to reproduce
When requesting a URL with all whitespaces as the ID (e.g., https://{site}/%A0), the method `controller_resource_loader.rb#load_resource_instance` fails to call `find_resourc…
-
Hi there,
I'm just wondering whether you would like to use [casl](https://github.com/stalniy/casl) in your project.
This library implements cancan for JavaScript in isomorphic way + a bit more.…
-
### Steps to reproduce
Define two rules:
```
can :manage, :all
cannot(
%i[index retrieve],
Model, Model.from_sandbox
) do ||
m.sandbox?
e…
-
We use
- pretender gem https://github.com/ankane/pretender
- cancancan https://github.com/CanCanCommunity/cancancan
and stimulus_reflex everything runs smoothly in a standard reflex calls via web…
-
``` ruby
#abilities
can :access, :customers, :business_site => {:business_id => user.business_site.business_id}
can :access, :sales, :business_site => {:business_id => user.business_site.business_id…
gamov updated
10 years ago
-
It would be nice to have CanCan could ask the subject which it should match against, like the following code.
``` ruby
class BlogPost < ActiveRecord::Base
end
class BlogPostPresenter < SimpleDelegat…
-
Hi,
I found out that CanCan adds " AND (1=0)" to SqlQuery and break results, please look at this example:
``` ruby
class Partner::UsersController < Partner::BaseController
load_and_authorize_resour…