module CQL::ActiveRecord::Scopes::ScopeUtilities

Overview

Utility methods for scope introspection and debugging

Extended Modules

Defined in:

active_record/scopes.cr

Instance Method Summary

Instance Method Detail

def list_scopes(model_class : Class) : Array(String) #

List all scopes defined on a model


[View source]
def scope_defined?(model_class : Class, scope_name : String) : Bool #

Check if a scope is defined on a model


[View source]
def scope_definition(model_class : Class, scope_name : String) : String | Nil #

Get the definition of a scope


[View source]