Namespace
Methods
A
C
F
G
L
N
R
T
W
Included Modules
Attributes
[RW] author
[RW] comment_ids
[RW] comments
[RW] tags
Class Public methods
log(message=nil, side=nil, new_record=nil)
# File activerecord/test/models/post.rb, line 146
def self.log(message=nil, side=nil, new_record=nil)
  return @log if message.nil?
  @log << [message, side, new_record]
end
new(*args)
# File actionpack/test/lib/controller/fake_models.rb, line 69
def initialize(*args)
  super
  @persisted = false
end
reset_log()
# File activerecord/test/models/post.rb, line 142
def self.reset_log
  @log = []
end
top(limit)
# File activerecord/test/models/post.rb, line 138
def self.top(limit)
  ranked_by_comments.limit_by(limit)
end
what_are_you()
# File activerecord/test/models/post.rb, line 151
def self.what_are_you
  'a post...'
end
Instance Public methods
add_joins_and_select()
# File activerecord/test/models/post.rb, line 73
def add_joins_and_select
  find :all, :select => 'tags.*, authors.id as author_id',
    :joins => 'left outer join posts on taggings.taggable_id = posts.id left outer join authors on posts.author_id = authors.id'
end
author_attributes=(attributes)
# File actionpack/test/lib/controller/fake_models.rb, line 75
def author_attributes=(attributes); end
comments_attributes=(attributes)
# File actionpack/test/lib/controller/fake_models.rb, line 78
def comments_attributes=(attributes); end
find_most_recent()
# File activerecord/test/models/post.rb, line 40
def find_most_recent
  find(:first, :order => "id DESC")
end
first_comment()
# File activerecord/test/models/post.rb, line 27
def first_comment
  super.body
end
greeting()
# File activerecord/test/models/post.rb, line 19
def greeting
  "hello"
end
newest()
# File activerecord/test/models/post.rb, line 44
def newest
  created.last
end
tags_attributes=(attributes)
# File actionpack/test/lib/controller/fake_models.rb, line 81
def tags_attributes=(attributes); end
the_association()
# File activerecord/test/models/post.rb, line 48
def the_association
  proxy_association
end