Module: ActiveEnumerable

Includes:
Base, Comparable, EnglishDsl, Queries, Scopes, Enumerable
Defined in:
lib/active_enumerable.rb,
lib/active_enumerable/base.rb,
lib/active_enumerable/order.rb,
lib/active_enumerable/where.rb,
lib/active_enumerable/finder.rb,
lib/active_enumerable/scopes.rb,
lib/active_enumerable/queries.rb,
lib/active_enumerable/version.rb,
lib/active_enumerable/comparable.rb,
lib/active_enumerable/english_dsl.rb,
lib/active_enumerable/scope_method.rb,
lib/active_enumerable/method_caller.rb,
lib/active_enumerable/record_not_found.rb

Defined Under Namespace

Modules: Base, Comparable, EnglishDsl, Order, Queries, ScopeMethod, Scopes, Where Classes: Finder, MethodCaller, RecordNotFound

Constant Summary collapse

VERSION =
"1.0.0"

Constants included from EnglishDsl

EnglishDsl::UnmetCondition

Class Method Summary collapse

Methods included from EnglishDsl

#and, #has, #of, #or, #where

Methods included from Where

#where, #where_conditions

Methods included from ScopeMethod

#scope

Methods included from Scopes

#method_missing, #respond_to_missing?

Methods included from Queries

#average, #count, #find, #find_by, #find_by!, #limit, #maximum, #minimum, #none, #order, #reverse_order, #sum

Methods included from Comparable

#<=>

Methods included from Base

#<<, #__new_relation__, #active_enumerable_setup, #all, #each, #initialize, #name, #to_a

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ActiveEnumerable::Scopes

Class Method Details

.included(base) ⇒ Object



21
22
23
# File 'lib/active_enumerable.rb', line 21

def self.included(base)
  base.extend(Scopes::ClassMethods)
end