Sha256: 27754fd9c9120759a900e913017441caea184a9fdb233537e9782127c92621e7
Contents?: true
Size: 371 Bytes
Versions: 15
Compression:
Stored size: 371 Bytes
Contents
class Author < ActiveRecord::Base has_many :edits end class Edit < ActiveRecord::Base belongs_to :author belongs_to :article end class Article < ActiveRecord::Base has_many :edits has_many :editors, :through => :edits, :source => :author belongs_to :author def self.find_with_scope(options={}, &block) with_scope(:find => options, &block) end end
Version data entries
15 entries across 15 versions & 2 rubygems