Sha256: cbfa6558a7423ae6d03d49192c7ba59b0e704675f1a82460561a0c05076cf74c

Contents?: true

Size: 275 Bytes

Versions: 1

Compression:

Stored size: 275 Bytes

Contents

class Post < ActiveRecord::Base
end

class Appointment < ActiveRecord::Base
  by_star_field scope: ->{ where(day_of_month: 1) }
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

1 entries across 1 versions & 1 rubygems

Version Path
by_star-3.0.0 spec/fixtures/active_record/models.rb