search for: file_coilumn

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

2006 Jun 23
0
Overriding a file_column attribute in model
...ck on the Manager''s. However, none of the file_column methods are available. All I''m getting in @user.logo is a string. @user.logo.relative_path, for instance, returns nil, as do calls to url_for_file_column. Obviously all my accessor is returning is a string attribute, noit a file_coilumn. Is there a sensible way in my model to get the behavior I want, i.e. to override the default read accessor and return a file_column with the methods and attributes automagically brought along? I suppose I could replace instances of url_for_file_column with a custom helper that checks the user...