I try use lazy-load like @gotar suggested to me
```ruby
if user
  user_events = user.events.where(private: true)
  user_events = user_events.where(name: Regexp.new(params[:search])) if params[:search]
  events += user_events
end
```