-
I'm writing a [DataMapper adapter](https://github.com/siegfried/dm-parse) to make DataMapper work on [Parse](https://parse.com/). When I use #load_and_authorize_resource in nested resource controller,…
-
Using rails 3.2.6, CanCan 1.6.8, and mongoid 3.05.
I have a Products collection where each Product document can be quite large.
Each user document has an array of Product IDs that the user "owns" un…
-
I have a 3 level association as follow:
```
User has_one Hotel
Hotel has_many Rooms
Room has_many Prices
```
I have defined the ability as follow:
``` ruby
def initialize(user)
unless user.nil?
…
-
I am using Cancan and Rolify together..
if can write :
```
if admin.has_role? :manager
can [:read, :new, :edit], Admin
can :update, Admin, :id => admin[:id]
cannot [:destroy, :lock, :unlock],…
ghost updated
10 years ago
-
Another library came to my attention at ElixirConf that looks a lot more explicit in its implementation than `canary` and maps closer to `Pundit` than `cancancan`. It's named [`bodyguard`](https://git…
-
### Steps to reproduce
Similar (but I think a different issue) to #809.
Granting read permission on an intermediate STI subclass as well as the STI base class leads to no records being returned …
-
I am using devise, cancan, and mongoid in a rails 3.2 application.
When I updated to cancan 1.6.10 I started receiving `Mongoid::Errors::DocumentNotFound` exceptions in some of my controllers. It tur…
-
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…
-
When having meta_where conditions, the resulting sql doesn't have the conditions inverted.
In case of merges with straight hashes, the sql resulting from these straight hashes isn't inverted etiher.
-
This was working and now it's not.
No idea why or how.