Sha256: c60fa16b28f6bc46e5c73d900296f80ad851d367b5f1da405a150282ecca82ec

Contents?: true

Size: 300 Bytes

Versions: 17

Compression:

Stored size: 300 Bytes

Contents

class Author < ActiveRecord::Base
  has_many :topics

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
fake_arel-1.3.4 spec/fixtures/author.rb
fake_arel-1.3.3 spec/fixtures/author.rb
fake_arel-1.3.2 spec/fixtures/author.rb
fake_arel-1.3.1 spec/fixtures/author.rb
fake_arel-1.3.0 spec/fixtures/author.rb
fake_arel-1.2.0 spec/fixtures/author.rb
fake_arel-1.1.0 spec/fixtures/author.rb
fake_arel-1.0.0 spec/fixtures/author.rb
fake_arel-1.0.0.a spec/fixtures/author.rb
fake_arel-0.9.9 spec/fixtures/author.rb
fake_arel-0.9.8 spec/fixtures/author.rb
fake_arel-0.9.7 spec/fixtures/author.rb
fake_arel-0.9.6 spec/fixtures/author.rb
fake_arel-0.9.6pre spec/fixtures/author.rb
fake_arel-0.9.5 spec/fixtures/author.rb
fake_arel-0.9.4 spec/fixtures/author.rb
fake_arel-0.9.3 spec/fixtures/author.rb