-
Hi, pippi is now working for me, but it would be great if it offered to ignore code from gems. In fact, this would be helpful as the default option. My pippi.log reads:
```
/Users/dan/.rbenv/versions…
-
### Steps to reproduce
In the scenario where the current user has the ability to only edit/update certain attributes on a user model. If the current user has the "admin" role and @user has a role o…
-
Hello all, I have a question that I can't find an example in the doc, loading nested of nested resource
I have
```
class A
has_many B
:project_id
class B
has_one C
class C
```
…
-
### Steps to reproduce
You can find a full gist demonstrating the [problem and potential solution in here](https://gist.github.com/oboxodo/180703cff6182cdb63a9ba4091b59c26).
Given the following …
-
### Steps to reproduce
School belongs_to Admin, School gets Inquiries from students. So an admin should be able to see only the inquiries linked to their school:
```ruby
# ability.rb
def adm…
-
Rails 4 + Cancan
Q. How to give authorize_resource at controller for multiple models ?
Example
ability.rb
if user.is_sys_owner?
can :manage, [MdmArea, MdmCity, MdmCountry, MdmState]
end
cla…
-
Using CanCan 1.6.10 and Rails 4, I stumbled over a weird issue.
Short example:
``` ruby
# ability.rb
class Ability
include CanCan::Ability
def initialize(user)
user ||= User.new(role: 'user…
-
With
``` ruby
class ApplicationController < ActionController::Base
authorize_resource
end
class SpecialController < ApplicationController
skip_authorize_resource
authorize_resource :class => f…
-
When the subject is an `ActiveRecord_Associations_CollectionProxy(ActiveRecord::Relation)`, the inner_foo value is true, but the outer_foo value is nil as seen below;
This is because it calls this …
-
Ve folio je CanCanCan, ale views ho nevyužívají naplno. Například zobrazení tlačítka " +Add" pro `Folio::User` by se mělo řídit `if can?(:create, Folio::User)`
Když jsem zkusil v `main_app` nasta…
foton updated
2 years ago