class Admin::ResourceController
def set_owner_or_editor
def set_owner_or_editor self.model.created_by_id = current_user.id if self.model.id == nil self.model.updated_by_id = current_user.id end
def set_owner_or_editor self.model.created_by_id = current_user.id if self.model.id == nil self.model.updated_by_id = current_user.id end