Sha256: 3f97609b6f5fdafc4757b089d3a7da2265e56d88db2ec2e8d081d57a4f9d4b2f
Contents?: true
Size: 294 Bytes
Versions: 36
Compression:
Stored size: 294 Bytes
Contents
class Author < ActiveRecord::Base # @!attribute name # @return [String] # @!attribute # @return [ActiveRecord::Relation<Todo>] has_many :todos, inverse_of: :author scope :named, ->( name ) { where( name: name ) } do def alphabetical order( :name ) end end end
Version data entries
36 entries across 36 versions & 1 rubygems