Methods
Class Public methods
Source: show
# File rails/activerecord/test/fixtures/post.rb, line 44 def self.what_are_you 'a post...' end
Instance Public methods
Source: show
# File rails/activerecord/test/fixtures/post.rb, line 25 def add_joins_and_select find :all, :select => 'tags.*, authors.id as author_id', :include => false, :joins => 'left outer join posts on taggings.taggable_id = posts.id left outer join authors on posts.author_id = authors.id' end
Source: show
# File rails/activerecord/test/fixtures/post.rb, line 11 def find_most_recent find(:first, :order => "id DESC") end
Source: show
# File rails/activerecord/test/fixtures/post.rb, line 3 def greeting "hello" end