Sha256: 7754500fcf88cc50d42a62d5af991c6f613b754fab06211023402b98b32c91bc
Contents?: true
Size: 925 Bytes
Versions: 1
Compression:
Stored size: 925 Bytes
Contents
## 0.1.0 - June 11, 2012 ### Improvements * Implementation of `attaches_one` ``` ruby class Album include Mongoid::Document include MediaMagick::Model attaches_one :photo end album = Album.create album.photo.create(photo: params[:file]) album.reload.photo.url album.reload.photo.filename ``` * `attachment_container` can personalize the partial ``` erb <%= attachment_container @album, :photos, {}, {}, partial: 'albums/photo' %> ``` * Allows to create an image without a father in related relations ``` ruby class Album include Mongoid::Document include MediaMagick::Model attaches_many :photos, :relation => :referenced end album = Album.new photo = album.photos.create(photo: params[:file]) ``` * Allow the `attachs_many` to be used in embedded documents ### Deprecations * `MediaMagick::Model#attachs_many` is deprecated in favor of `attaches_many`. ## 0.0.1 - April 11, 2012 Initial release.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
media_magick-0.1.0 | CHANGELOG.md |