Module: Attach
- Defined in:
- lib/attach/attachable.rb,
lib/attach.rb,
lib/attach/version.rb,
lib/attach/attachment.rb
Overview
attachment :id_photo, Photo, [[:full, 400, 300, ‘#eee’], [:medium, 260, 195, ‘#eee’], [:thumb, 96, 72, ‘#eee’]]
attachments :photos, Photo, [[:full, 400, 300, '#eee'], [:medium, 260, 195, '#eee'], [:thumb, 96, 72, '#eee']]
end
Person.id_photo => Photo Person.photos => Array/Collection of Photo Person.photo => first Photo
Defined Under Namespace
Modules: Attachable, Attachment
Constant Summary collapse
- VERSION =
'0.3.0'.freeze