Sha256: ae1ee01a87d553446c4b54c88ba3f12e398f4e2cd904ee2b1d5b7479187c1df1

Contents?: true

Size: 149 Bytes

Versions: 6

Compression:

Stored size: 149 Bytes

Contents

class Attachment
  include Mongoid::Document

  belongs_to :asset

  def as_json *args
    attributes.as_json.merge asset: asset.as_json
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
slices-1.0.5 app/models/attachment.rb
slices-1.0.4 app/models/attachment.rb
slices-1.0.3 app/models/attachment.rb
slices-1.0.2 app/models/attachment.rb
slices-1.0.1 app/models/attachment.rb
slices-1.0.0 app/models/attachment.rb