Module: Babik::ClassMethods

Defined in:
lib/babik.rb

Overview

All class methods that are injected to ActiveRecord models

Instance Method Summary collapse

Instance Method Details

#objects ⇒ QuerySet

QuerySet for the current model.

Returns:

  • (QuerySet) —

    queryset for the current model.



111
112
113
# File 'lib/babik.rb', line 111

def objects
  Babik::QuerySet::Base.new(self)
end