Show More
Commit Description:
shows warning message when user cannot log in in single user mode
Commit Description:
shows warning message when user cannot log in in single user mode
References:
File last commit:
Show/Diff file:
Action:
vendor/plugins/will_paginate/test/fixtures/topic.rb
| 10 lines
| 383 B
| text/x-ruby
| RubyLexer
|
|
r299 | 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 } | ||||
} | ||||
end | ||||