Displaying 1 result from an estimated 1 matches for "another_new_file".
2006 Aug 15
5
Conditional extend of active record
Hi list,
I''m trying to figure out the best way to add some functionality to
active record. I have a table of files, and need to write a set of core
functions that do different things depending on the type of file eg:
class file < ActiveRecord::Base
def resize
....does stuff
end
end
the problem is the "....does stuff". For example, if the file is an
image it