Sha256: 6885f57540a3c7e80c7e2af5f33a99628235c3972f7b215d1ee2ae836537ccd8

Contents?: true

Size: 254 Bytes

Versions: 8

Compression:

Stored size: 254 Bytes

Contents

class Cubism::Base
  include ActiveModel::Model
  include Cubism::Presence
  include GlobalID::Identifiable

  def self.find(id)
    new if id == "cubism-#{self.class.name.underscore}"
  end

  def id
    "cubism-#{self.class.name.underscore}"
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cubism-0.1.0.pre8 app/models/cubism/base.rb~
cubism-0.1.0.pre7 app/models/cubism/base.rb~
cubism-0.1.0.pre6 app/models/cubism/base.rb~
cubism-0.1.0.pre5 app/models/cubism/base.rb~
cubism-0.1.0.pre4 app/models/cubism/base.rb~
cubism-0.1.0.pre3 app/models/cubism/base.rb~
cubism-0.1.0.pre2 app/models/cubism/base.rb~
cubism-0.1.0.pre1 app/models/cubism/base.rb