Sha256: db67522f8aad4ef8206083fefe49c432bd7ee4d76b63f6e9eea3bab2aa20ba0a

Contents?: true

Size: 263 Bytes

Versions: 6

Compression:

Stored size: 263 Bytes

Contents

class Song < OpenStruct
  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

6 entries across 6 versions & 1 rubygems

Version Path
cells-4.0.5 test/rails4.2/app/models/song.rb
cells-4.0.4 test/rails4.2/app/models/song.rb
cells-4.0.3 test/rails4.2/app/models/song.rb
cells-4.0.2 test/rails4.2/app/models/song.rb
cells-4.0.1 test/rails4.2/app/models/song.rb
cells-4.0.0 test/rails4.2/app/models/song.rb