search for: a_model

Displaying 2 results from an estimated 2 matches for "a_model".

Did you mean: y_model
2006 Jul 11
0
Should I use exclamation marks for methods that change associations?
...s_role, #has_no_role, #accepts_role, and #accepts_no_role methods: user.has_role ''site_admin'' user.has_role ''moderator'', group user.has_no_role ''site_admin'' user.has_role ''member'', Group a_model.accepts_role ''moderator'', user a_model.accepts_no_role ''moderator'', user Model.accepts_role ''class moderator'', user With the new dynamic methods, we give the user-like model some flexibility: user.is_moderator_of group --&gt...
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