Fix startup crash with Mongoid wrapper.
This commit is contained in:
parent
6f74e58068
commit
483ea9ea9c
|
@ -15,8 +15,8 @@ module Impressionist
|
|||
:start_date=>nil,
|
||||
:end_date=>Time.now)
|
||||
|
||||
imps = options[:start_date].blank?
|
||||
? impressions :
|
||||
imps = options[:start_date].blank? ?
|
||||
impressions :
|
||||
impressions.
|
||||
between(created_at: options[:start_date]..options[:end_date])
|
||||
|
||||
|
|
Loading…
Reference in New Issue