lib/can_search/date_range_scope.rb
# Returns a range for the given time using the date period.
Returns a range for the given time using the date period.
Returns a range for the given time using the date period .
def date_range_for(period_name, time = nil)
    if period = date_periods[period_name.to_sym]
      period.call(parse_filtered_time(time))
    else
      raise "Invalid period: #{period_name.inspect}"
    end
  end
def date_range_for ( period_name , time = nil ) if period = date_periods [ period_name . to_sym ] period . call ( parse_filtered_time ( time ) ) else raise "Invalid period: #{period_name.inspect}" end end
Returns a range for the given time using the date period.
Returns a range for the given time using the date period .
period_name
<not_specific>
time
<not_specific>