⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edition.rb

📁 本书源码对于学习RUBY网络编程语言非常有帮助。
💻 RB
字号:
class Edition < ActiveRecord::Base  has_and_belongs_to_many :works  has_many   :orders  belongs_to :publisher  def Edition.of_works(works)    works.map {|work| work.editions }.flatten.uniq  end  def composers    works.map {|work| work.composer }.uniq  end# The edition might have a title of its own.  If not,# fall back on the title of the first (and perhaps only)# work in the edition.  def nice_title    (title || works[0].nice_title) +     " (#{publisher.name}, #{year})"  endend

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -