search for: created_by_us

Displaying 1 result from an estimated 1 matches for "created_by_us".

Did you mean: created_by_id
2006 Jan 16
16
acts_as_authenticated current_user in a model?
...model? Is there some sort of include or require I can do some where that would allow this? ********************************************************** Here is what I am trying to do: ********************************************************** class Setting < ActiveRecord::Base before_create :created_by_user # create only before_save :updated_by_user # both, create and update def created_by_user self.created_by_user_id = current_user.id self.created_by_user_login = current_user.login end def updated_by_user self.updated_by_user_id = current_user.id self.updated_by_user_log...