Method: ActiveData::Model::Scopes::ClassMethods#scope

Defined in:
lib/active_data/model/scopes.rb

#scope(*args) ⇒ Object



69
70
71
72
73
74
75
# File 'lib/active_data/model/scopes.rb', line 69

def scope(*args)
  if args.empty?
    current_scope
  else
    scope_class.new(*args)
  end
end