alxjrvs/WednesdayShelf

View on GitHub
app/models/series.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Series < ActiveRecord::Base
  belongs_to :publisher
  has_many :issues, -> {joins(:release).order 'releases.date ASC, raw_title ASC'}
  has_many :releases, through: :issues
  has_many :pulls
  has_many :pull_lists, through: :pulls
end