Sha256: 9192a7038a2df2186386e474b28c07512513cca114e991ad2394bb6ac6c44246

Contents?: true

Size: 197 Bytes

Versions: 14

Compression:

Stored size: 197 Bytes

Contents

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

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

  validates_presence_of :content
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
refinerycms-0.9.6.34 vendor/plugins/will_paginate/test/fixtures/reply.rb
refinerycms-0.9.6.33 vendor/plugins/will_paginate/test/fixtures/reply.rb
refinerycms-0.9.6.32 vendor/plugins/will_paginate/test/fixtures/reply.rb
refinerycms-0.9.6.31 vendor/plugins/will_paginate/test/fixtures/reply.rb
refinerycms-0.9.6.30 vendor/plugins/will_paginate/test/fixtures/reply.rb
refinerycms-0.9.6.29 vendor/plugins/will_paginate/test/fixtures/reply.rb
refinerycms-0.9.6.28 vendor/plugins/will_paginate/test/fixtures/reply.rb
refinerycms-0.9.6.27 vendor/plugins/will_paginate/test/fixtures/reply.rb
refinerycms-0.9.6.26 vendor/plugins/will_paginate/test/fixtures/reply.rb
refinerycms-0.9.6.25 vendor/plugins/will_paginate/test/fixtures/reply.rb
refinerycms-0.9.6.24 vendor/plugins/will_paginate/test/fixtures/reply.rb
refinerycms-0.9.6.23 vendor/plugins/will_paginate/test/fixtures/reply.rb
refinerycms-0.9.6.22 vendor/plugins/will_paginate/test/fixtures/reply.rb
refinerycms-0.9.6.21 vendor/plugins/will_paginate/test/fixtures/reply.rb