inossidabile / protector

Comfortable (seriously) white-list security restrictions for models on a field level
MIT License
270 stars 31 forks source link

pagination issue #6

Closed cj closed 11 years ago

cj commented 11 years ago

Hi,

When using will_paginate or kaminari any scopes that #restrict! apply are not used with pagination. Removing restrict! and adding the scopes manually it paginates correctly.

inossidabile commented 11 years ago

I need details and some kind of sample or anything. I don't see why it could happen.

cj commented 11 years ago

@inossidabile I created an example app from scratch for you https://github.com/cj/protector_pagination

inossidabile commented 11 years ago

Please confirm the fix.

cj commented 11 years ago

@inossidabile thank you, that seems to have fixed it. I think it might have caused another issue though. .visible? doesn't seem to work:

inossidabile commented 11 years ago

It's speced actually. Show me the block you are evaluating.

inossidabile commented 11 years ago

And pls raise another issue