Module: Groupdate::QueryMethods

Defined in:
lib/groupdate/query_methods.rb

Instance Method Summary collapse

Instance Method Details

#group_by_period(period, field, permit: nil, **options) ⇒ Object



13
14
15
16
# File 'lib/groupdate/query_methods.rb', line 13

def group_by_period(period, field, permit: nil, **options)
  Groupdate::Magic.validate_period(period, permit)
  send("group_by_#{period}", field, **options)
end