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

Version Path
scorpion-ioc-0.5.15 spec/internal/app/models/author.rb
scorpion-ioc-0.5.14 spec/internal/app/models/author.rb
scorpion-ioc-0.5.13 spec/internal/app/models/author.rb
scorpion-ioc-0.5.12 spec/internal/app/models/author.rb
scorpion-ioc-0.5.11 spec/internal/app/models/author.rb
scorpion-ioc-0.5.10 spec/internal/app/models/author.rb
scorpion-ioc-0.5.9 spec/internal/app/models/author.rb
scorpion-ioc-0.5.8 spec/internal/app/models/author.rb
scorpion-ioc-0.5.7 spec/internal/app/models/author.rb
scorpion-ioc-0.5.6 spec/internal/app/models/author.rb
scorpion-ioc-0.5.5 spec/internal/app/models/author.rb
scorpion-ioc-0.5.4 spec/internal/app/models/author.rb
scorpion-ioc-0.5.2 spec/internal/app/models/author.rb
scorpion-ioc-0.5.1 spec/internal/app/models/author.rb
scorpion-ioc-0.5.0 spec/internal/app/models/author.rb
scorpion-ioc-0.4.0 spec/internal/app/models/author.rb