05:37
<injekt>
How would I go about doing something like.. Posts.filter(:user.username => 'something') where user would be an associated model
05:40
<manveru>
injekt: User[:username].posts
05:40
<manveru>
injekt: User[username: 'something'].posts
05:41
<injekt>
Oh duh.. what the hell was I thinking
05:41
<injekt>
Thanks, manveru
06:11
<merboutpost>
Hi if I want to restrict setting some of the member varibales ( calling the setter) I should use set_restricted_columns?
07:59
<jeremyevans>
merboutpost: I recommend using Model#set_only or Model#set_except on a per call basis, but set_restricted_columns should work for a global setting
08:00
<merboutpost>
jeremyevans: thanks
08:25
Swimming_Bird joined
08:47
<josh0x0>
ok i have the method `def before_save; self.last_modified = Time.now; end` and i clearly have a last_modified column in my schema. but i'm getting "no such column". there must be something obvious that i'm missing
09:10
<josh0x0>
nvm, the obvious soln was not to override the [], []= methods