Fix startup crash with Mongoid wrapper.

This commit is contained in:
DouglasSherk 2013-09-30 14:02:47 -04:00
parent 6f74e58068
commit 483ea9ea9c
1 changed files with 2 additions and 2 deletions

View File

@ -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])