Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Squeel Compatibility #462

Open
seanmcoleman opened this issue Sep 1, 2011 · 10 comments
Open

Squeel Compatibility #462

seanmcoleman opened this issue Sep 1, 2011 · 10 comments

Comments

@seanmcoleman
Copy link

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
Copy link

mtalcott commented Sep 8, 2011

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

@brendon
Copy link

brendon commented Sep 15, 2011

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

@evelant
Copy link

evelant commented Oct 29, 2011

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
Copy link

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.

@clyfe
Copy link

clyfe commented Dec 27, 2011

@sethvargo
Copy link

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

@clyfe
Copy link

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
https://gist.github.com/1523940

@raskhadafi
Copy link

Thanks @Sija for your patch! It works!

@luxflux
Copy link

luxflux commented May 10, 2012

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

@tomeduarte
Copy link

Is anything blocking this from being merged?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants