Sha256: 4feb476e55c3e8a777548ad765e6cec5d26ee80adb71fdb12f94ea47d290a21c

Contents?: true

Size: 288 Bytes

Versions: 3

Compression:

Stored size: 288 Bytes

Contents

class Author < ActiveRecord::Base
  has_many :topics

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fake_arel-1.5.1 spec/fixtures/author.rb
fake_arel-1.5.0 spec/fixtures/author.rb
fake_arel-1.4.0 spec/fixtures/author.rb