Sha256: a6585cb3894261e38d1eeddbb3f242da7c332e1c1d6c7b5280007a9f3c238dc1

Contents?: true

Size: 236 Bytes

Versions: 9

Compression:

Stored size: 236 Bytes

Contents

class Reply < ActiveRecord::Base
  belongs_to :topic, :include => [:replies]

  scope :recent,
    :conditions => ['replies.created_at > ?', 15.minutes.ago],
    :order => 'replies.created_at DESC'

  validates_presence_of :content
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
hobo_will_paginate-2.1.1 spec/fixtures/reply.rb
hobo_will_paginate-2.1.0 spec/fixtures/reply.rb
hobo-will_paginate-3.0.4.hobo spec/fixtures/reply.rb
will_paginate-3.0.4 spec/fixtures/reply.rb
will_paginate-3.0.3 spec/fixtures/reply.rb
will_paginate-3.0.2 spec/fixtures/reply.rb
will_paginate-3.0.1 spec/fixtures/reply.rb
will_paginate-3.0.0 spec/fixtures/reply.rb
will_paginate-3.0.pre4 spec/fixtures/reply.rb