```ruby
if content.valid?
  content.create_discussion(name: name, user: user)
end

content
```