Module: Perry::Scopes

Included in:
Base
Defined in:
lib/perry/scopes/conditions.rb,
lib/perry/scopes.rb

Overview

TRP: Implementation of this feature was heavily influenced by binarylogic’s Searchlogic-2.4.19

> github.com/binarylogic/searchlogic

It is designed to mimick much of the API of searchlogic so that it can be used alongside AR objects utilizing Searchlogic
without developer confusion.  There are certain features that are skipped because of the nature of Perry.

Defined Under Namespace

Modules: ClassMethods, Conditions, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(receiver) ⇒ Object



34
35
36
37
38
39
# File 'lib/perry/scopes.rb', line 34

def self.included(receiver)
  receiver.extend         ClassMethods
  receiver.send :include, InstanceMethods

  receiver.extend Conditions
end