lib/by_star.rb
# Returns all records between a given start and finish time.
#
# Currently only supports Time objects.
Returns all records between a given start and finish time.
Currently only supports Time objects.
Returns all records between a given start and finish time . Currently only supports Time objects .
def between(start, finish, options={})
    field = options[:field] || by_star_field
    scope = where("#{field} >= ? AND #{field} <= ?",
              start, finish)
    scope = scope.order(options[:order]) if options[:order]
    scope
  end
def between ( start , finish , options = { } ) field = options [ :field ] || by_star_field scope = where ( "#{field} >= ? AND #{field} <= ?" , start , finish ) scope = scope . order ( options [ :order ] ) if options [ :order ] scope end
Returns all records between a given start and finish time.
Returns all records between a given start and finish time .
start
<not_specific>
finish
<not_specific>
options
<not_specific>