Sha256: 59a3782220d2e2538966db0ce5460a7c71a6bc47cc88106655a582c0915fe52d

Contents?: true

Size: 250 Bytes

Versions: 2

Compression:

Stored size: 250 Bytes

Contents

class Song
  require "active_model"
  include ActiveModel::Conversion
  extend ActiveModel::Naming

  def persisted?
    true
  end

  def parents
    []
  end

  def name
    "song"
  end

  def id
    1
  end

  def artist
    Artist.new
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cells-4.0.0.rc1 test/rails4.2/app/models/song.rb
cells-4.0.0.beta6 test/rails4.2/app/models/song.rb