Sha256: adc4013dbafff85d790affe0e46ec46940c657f9ec1316b808859f071550d93b

Contents?: true

Size: 184 Bytes

Versions: 8

Compression:

Stored size: 184 Bytes

Contents

# frozen_string_literal: true

class User < ActiveRecord::Base
  has_many :articles

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
thinking-sphinx-4.4.1 spec/internal/app/models/user.rb
thinking-sphinx-4.4.0 spec/internal/app/models/user.rb
thinking-sphinx-4.3.2 spec/internal/app/models/user.rb
thinking-sphinx-4.3.1 spec/internal/app/models/user.rb
thinking-sphinx-4.3.0 spec/internal/app/models/user.rb
thinking-sphinx-4.2.0 spec/internal/app/models/user.rb
thinking-sphinx-4.1.0 spec/internal/app/models/user.rb
thinking-sphinx-4.0.0 spec/internal/app/models/user.rb