Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
after_update :create_new_task, if: :completed? def create_new_task self.class.create(title: 'Your new task', user_id: user_id) end