module Elastics::Scopes

Public Class Methods

elastics() click to toggle source
# File lib/elastics/scopes.rb, line 7
def self.elastics; @elastics end
included(context) click to toggle source
# File lib/elastics/scopes.rb, line 4
def self.included(context)
  context.class_eval do
    @elastics ||= ClassProxy::Base.new(context)
    def self.elastics; @elastics end

    extend ClassMethods

    @scope_methods = []
    def self.scope_methods; @scope_methods end
  end
end
scope_methods() click to toggle source
# File lib/elastics/scopes.rb, line 12
def self.scope_methods; @scope_methods end