Displaying 1 result from an estimated 1 matches for "do_something_awesom".
Did you mean:
do_something_awesome
2005 Dec 17
2
Storing an object in the db
I''ve asked this before, but never got a working response. I''d like to
store an object inside a binary field in my db. So I''d have a class
like this
class MyAwesomeClass
def do_something_awesome
...
end
end
then
class MyRecord < ActiveRecord::Base
end
the table my_record would have a binary field, my_object, that would
store an object of MyAwesomeClass. So I could do:
r = MyRecord.new
r.my_object = MyAwesomeClass.new
r.reload
r.my_object.do_something_awesome
I saw that th...