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 29
def self.all_as_method
  all
end
new(id = nil, post_id = nil)
# File actionpack/test/lib/controller/fake_models.rb, line 60
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 25
def self.search_by_type(q)
  where("#{QUOTED_TYPE} = ?", q)
end
what_are_you()
# File activerecord/test/models/comment.rb, line 21
def self.what_are_you
  'a comment...'
end
Instance Public methods
name()
# File actionpack/test/lib/controller/fake_models.rb, line 65
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 63
def persisted?; @id.present? end
relevances_attributes=(attributes)
# File actionpack/test/lib/controller/fake_models.rb, line 70
def relevances_attributes=(attributes); end
save()
# File actionpack/test/lib/controller/fake_models.rb, line 62
def save; @id = 1; @post_id = 1 end
to_key()
# File actionpack/test/lib/controller/fake_models.rb, line 61
def to_key; id ? [id] : nil end
to_param()
# File actionpack/test/lib/controller/fake_models.rb, line 64
def to_param; @id.to_s; end
to_s()
# File activerecord/test/models/comment.rb, line 34
def to_s
  body
end