Merge pull request #116 from DouglasSherk/master

Fix startup crash with Mongoid wrapper.
This commit is contained in:
Antonio C Nalesso Moreira 2013-09-30 12:46:37 -07:00
commit 2b4db0001d
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])