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-1.0.10 spec/internal/app/models/author.rb
scorpion-ioc-1.0.8 spec/internal/app/models/author.rb
scorpion-ioc-1.0.7 spec/internal/app/models/author.rb
scorpion-ioc-1.0.6 spec/internal/app/models/author.rb
scorpion-ioc-1.0.4 spec/internal/app/models/author.rb
scorpion-ioc-1.0.3 spec/internal/app/models/author.rb
scorpion-ioc-1.0.2 spec/internal/app/models/author.rb
scorpion-ioc-1.0.1 spec/internal/app/models/author.rb
scorpion-ioc-1.0.0 spec/internal/app/models/author.rb
scorpion-ioc-0.6.2 spec/internal/app/models/author.rb
scorpion-ioc-0.6.1 spec/internal/app/models/author.rb
scorpion-ioc-0.6.0 spec/internal/app/models/author.rb
scorpion-ioc-0.5.23 spec/internal/app/models/author.rb
scorpion-ioc-0.5.22 spec/internal/app/models/author.rb
scorpion-ioc-0.5.21 spec/internal/app/models/author.rb
scorpion-ioc-0.5.20 spec/internal/app/models/author.rb
scorpion-ioc-0.5.19 spec/internal/app/models/author.rb
scorpion-ioc-0.5.18 spec/internal/app/models/author.rb
scorpion-ioc-0.5.17 spec/internal/app/models/author.rb
scorpion-ioc-0.5.16 spec/internal/app/models/author.rb