Class: TentD::Model::PostAttachment

Inherits:
Object
  • Object
show all
Includes:
DataMapper::Resource
Defined in:
lib/tentd/model/post_attachment.rb

Instance Method Summary collapse

Instance Method Details

#as_json(options = {}) ⇒ Object



22
23
24
# File 'lib/tentd/model/post_attachment.rb', line 22

def as_json(options = {})
  super({ :exclude => [:id, :data, :post_id, :created_at, :updated_at] }.merge(options))
end