Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Squeel Compatibility #462

seanmcoleman opened this Issue Sep 1, 2011 · 10 comments


None yet
9 participants

Is/Will CanCan be compatible with Squeel, the successor to MetaWhere now that MetaWhere is not compatible with Rails 3.1? I'm trying to pass a comparison as a hash, but CanCan still complains that ability definitions can't be used with raw sql. I'm guessing that Squeel functions much differently internally than how MetaWhere did.

mtalcott commented Sep 8, 2011

I'm wondering the same thing. Are there any plans to support Squeel?

brendon commented Sep 15, 2011

Ditto, just encountered this problem when trying to upgrade to 3.1 :)

I am also working on a Rails 3.1 app with cancan and would like to use MetaWhere/Squeel. Are there any plans to support it?

mtalcott commented Dec 7, 2011

Any update on this? Even a little bit of info as to if Squeel support is even a priority would help immensely.

.accessible_by is a great feature, but MetaWhere/Squeel-like conditions are necessary for me to be able to use it on my project.

Since MetaWhere has openly admitted they aren't supporting Rails 3, this would be really nice in CanCan 2.0 :)

clyfe commented Jan 14, 2012

My monkey patch gist should now offer all the old MetaWhere integration capabilities with extra capability to make outer joins, using Squeel, for CanCan 1.6.7

Thanks @Sija for your patch! It works!

luxflux commented May 10, 2012

Yep, works also for me. Would be cool if this could be merged!

Is anything blocking this from being merged?

@vrybas vrybas referenced this issue in CanCanCommunity/cancancan Mar 30, 2014


Drop MetaWhere support #34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment