search for: tmp_attach

Displaying 1 result from an estimated 1 matches for "tmp_attach".

Did you mean: tap_attach
2006 Nov 09
2
redefining the method belongs_to in ActiveRecord::Base
...'' for module `ActiveRecord'' (NameError) The code with problem is: alias :attachment_belongs_to :belongs_to def belongs_to(association_id, options={}) self.attachment_belongs_to(association_id,options) if association_id == :attachment code = <<EOS alias :tmp_attach= :attachment= def attachment=(content) if content.class.name == ''Attachment'' #old functionality self.tmp_attach=(content) else if content.class.name.match(/^Hash/) && content["content"] && content["content"].original_filena...