Things you can do

Sugoi-sm_normal

Question:

Is there a Scope.to_sql method which turns a given scope into an SQL query string? e.g. Model.some_named_scope.to_sql ==> string

Asked over 2 years ago in Ruby on Rails by twoofour

Do you know the answer to this question?
Login with your Twitter account to answer it
Login
Twixperts.com uses Twitter API to authenticate your account
We use OAuth for authentication and do NOT store your Twitter credentials! Scout's honor.