Module: Searchlogic::NamedScopes::Ordering::ClassOverrideMethods

Defined in:
lib/searchlogic/named_scopes/ordering.rb

Instance Method Summary collapse

Instance Method Details

#new(*args) ⇒ Object



22
23
24
25
26
27
# File 'lib/searchlogic/named_scopes/ordering.rb', line 22

def new(*args)
  _inst = super
  #this overrides the 'order' method
  (class << _inst; self; end).send(:include, Searchlogic::NamedScopes::Ordering::InstanceOverrideMethods)
  _inst
end