Module: CreatedAtFilter

Included in:
GroupMembersFinder, IssuableFinder, UsersFinder
Defined in:
app/finders/concerns/created_at_filter.rb

Instance Method Summary collapse

Instance Method Details

#by_created_at(items) ⇒ Object


4
5
6
7
8
9
# File 'app/finders/concerns/created_at_filter.rb', line 4

def by_created_at(items)
  items = items.created_before(params[:created_before]) if params[:created_before].present?
  items = items.created_after(params[:created_after]) if params[:created_after].present?

  items
end