Error with more than one media_attachment in a model
Reported by Toni Reina | March 27th, 2009 @ 05:34 PM | in 0.7 (closed)
If a model has more than one media_attachment, this fail in setter field_ids because the value of field is overwriting in some place of app.
The code is in: /ubiquo_media/lib/ubiquo_media/media_selector/active_record.rb
A provisional monkey patch is duplicate field value in media_attachment method and use it in 'define_methods'.
We need find where field variable is overwrited.
Comments and changes to this ticket
-

Ramon Salvadó March 30th, 2009 @ 02:18 PM
- → State changed from new to resolved
(from [f89b9b602500edafd0e06ce4140a3343751832dd]) Fixes closure related bug (field overwriting when using name_for_asset) when multiple media_attachment are in use in the model. [#32 state:resolved] http://github.com/gnuine/ubiquo_...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Ruby on Rails based application framework.
Check the ubiquo website.
Source available from github
Ubiquo plugins can be found at http://github.com/gnuine
Check out the development master (Edge ubiquo):
gem install ubiquo
ubiquo --edge myapp
Creating or reviewing a patch
See the contributor guide.
Creating a feature request
If you want a new feature in Ubiquo it's best to implement it yourself.
Creating a bug report
When creating a bug report, be sure to include as much relevant information as possible. Post the code sample that causes the problem. Preferably, alter the unit tests and show through either changed or added tests how the expected behavior is not occuring.
People watching this ticket
Tags
Referenced by
-
#32 Error with more than one media_attachment in a model
(from [f89b9b602500edafd0e06ce4140a3343751832dd]) Fixes c...