Sha256: 15f81bcbf8d37058dcee2150f2f6f742ae74d97391be950fa07a9c67c59ecaaa

Contents?: true

Size: 432 Bytes

Versions: 8

Compression:

Stored size: 432 Bytes

Contents

class Topic < ActiveRecord::Base
  has_many :replies, :dependent => :destroy, :order => 'replies.created_at DESC'
  belongs_to :project

  named_scope :mentions_activerecord, :conditions => ['topics.title LIKE ?', '%ActiveRecord%']
  
  named_scope :with_replies_starting_with, lambda { |text|
    { :conditions => "replies.content LIKE '#{text}%' ", :include  => :replies }
  }

  def self.paginate_by_definition_in_class; end
end

Version data entries

8 entries across 8 versions & 5 rubygems

Version Path
will_paginate-2.3.17 test/fixtures/topic.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/will_paginate-2.3.16/test/fixtures/topic.rb
will_mostly_paginate-2.4.3 test/fixtures/topic.rb
will_paginate-2.3.16 test/fixtures/topic.rb
tism-will_paginate-2.3.16 test/fixtures/topic.rb
will_mostly_paginate-2.4.2 test/fixtures/topic.rb
Empact-will_paginate-2.3.15 test/fixtures/topic.rb
will_paginate-2.3.15 test/fixtures/topic.rb