module
CQL::ActiveRecord::Scopes::ScopeUtilities
Overview
Utility methods for scope introspection and debugging
Extended Modules
Defined in:
active_record/scopes.crInstance Method Summary
-
#list_scopes(model_class : Class) : Array(String)
List all scopes defined on a model
-
#scope_defined?(model_class : Class, scope_name : String) : Bool
Check if a scope is defined on a model
-
#scope_definition(model_class : Class, scope_name : String) : String | Nil
Get the definition of a scope
Instance Method Detail
def scope_defined?(model_class : Class, scope_name : String) : Bool
#
Check if a scope is defined on a model
def scope_definition(model_class : Class, scope_name : String) : String | Nil
#
Get the definition of a scope