serge-+Zb6sA+pqMZWk0Htik3J/w@public.gmane.org
2006-Sep-16 18:45 UTC
file_column - on_save Proc and marsheling
Hi All, Using file_column, when I set a file_column field to nil file_column adds an on_save method using a Proc. This blows away marshalling and hence the ability to store this model into a session once I have nilified the field. def on_save(&blk) @on_save ||= [] @on_save << Proc.new end Has anyone got a fix or workaround for this? I am using file_column 0.3.1 Thanks, Serge --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---