Sha256: 4673d3dce159d7c4b8b6353cad2a8e001b161d56986ce66a3c332612378267ab

Contents?: true

Size: 280 Bytes

Versions: 3

Compression:

Stored size: 280 Bytes

Contents

class Post < ActiveRecord::Base
end

class Appointment < ActiveRecord::Base
  by_star_field index_scope: ->(start){ start - 5.days }
end

class Event < ActiveRecord::Base
  by_star_field :start_time, :end_time, offset: 3.hours

  default_scope ->{ order('day_of_month ASC') }
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
ta_by_star-4.1.0 spec/fixtures/active_record/models.rb
ta_by_star-4.0.0 spec/fixtures/active_record/models.rb
by_star-4.0.0 spec/fixtures/active_record/models.rb