Displaying 1 result from an estimated 1 matches for "595186a0".
Did you mean:
59186ab
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