Sha256: ace310f03e5554525048864d3a909e2a44e051ede8f7719794a8564e22695dde

Contents?: true

Size: 153 Bytes

Versions: 14

Compression:

Stored size: 153 Bytes

Contents

class User < ActiveRecord::Base
  has_many :articles

  default_scope { order(:id) }
  scope :recent, lambda { where('created_at > ?', 1.week.ago) }
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
thinking-sphinx-3.4.2 spec/internal/app/models/user.rb
thinking-sphinx-3.4.1 spec/internal/app/models/user.rb
thinking-sphinx-3.4.0 spec/internal/app/models/user.rb
thinking-sphinx-3.3.0 spec/internal/app/models/user.rb
thinking-sphinx-3.2.0 spec/internal/app/models/user.rb
thinking-sphinx-3.1.4 spec/internal/app/models/user.rb
thinking-sphinx-3.1.3 spec/internal/app/models/user.rb
thinking-sphinx-3.1.2 spec/internal/app/models/user.rb
thinking-sphinx-3.1.1 spec/internal/app/models/user.rb
thinking-sphinx-3.1.0 spec/internal/app/models/user.rb
thinking-sphinx-3.0.6 spec/internal/app/models/user.rb
thinking-sphinx-3.0.5 spec/internal/app/models/user.rb
thinking-sphinx-3.0.4 spec/internal/app/models/user.rb
thinking-sphinx-3.0.3 spec/internal/app/models/user.rb