Methods
A
N
P
R
S
T
W
Included Modules
Attributes
[RW] body
[R] id
[R] post_id
[RW] relevances
Class Public methods
all_as_method()
# File activerecord/test/models/comment.rb, line 25
def self.all_as_method
  all
end
new(id = nil, post_id = nil)
# File actionpack/test/lib/controller/fake_models.rb, line 90
def initialize(id = nil, post_id = nil); @id, @post_id = id, post_id end
search_by_type(q)
# File activerecord/test/models/comment.rb, line 21
def self.search_by_type(q)
  self.find(:all, :conditions => ["#{QUOTED_TYPE} = ?", q])
end
what_are_you()
# File activerecord/test/models/comment.rb, line 17
def self.what_are_you
  'a comment...'
end
Instance Public methods
name()
# File actionpack/test/lib/controller/fake_models.rb, line 95
def name
  @id.nil? ? "new #{self.class.name.downcase}" : "#{self.class.name.downcase} ##{@id}"
end
persisted?()
# File actionpack/test/lib/controller/fake_models.rb, line 93
def persisted?; @id.present? end
relevances_attributes=(attributes)
# File actionpack/test/lib/controller/fake_models.rb, line 100
def relevances_attributes=(attributes); end
save()
# File actionpack/test/lib/controller/fake_models.rb, line 92
def save; @id = 1; @post_id = 1 end
to_key()
# File actionpack/test/lib/controller/fake_models.rb, line 91
def to_key; id ? [id] : nil end
to_param()
# File actionpack/test/lib/controller/fake_models.rb, line 94
def to_param; @id.to_s; end