diff options
author | Martin Wortschack <mwortschack@gitlab.com> | 2018-10-04 10:55:37 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-10-04 10:55:37 +0300 |
commit | 337b2c80f32cbd9986843a04296252d40f9847c5 (patch) | |
tree | 44544a40e742e8009ef90a9590ba0d4543449df5 /app/finders/user_recent_events_finder.rb | |
parent | 14ed916cf2ffe82ca11b8d25a88cb20f88823734 (diff) |
Resolve "Add new "Overview" tab on user profile page"
Diffstat (limited to 'app/finders/user_recent_events_finder.rb')
-rw-r--r-- | app/finders/user_recent_events_finder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/user_recent_events_finder.rb b/app/finders/user_recent_events_finder.rb index eeca5026da1..3f2e813d381 100644 --- a/app/finders/user_recent_events_finder.rb +++ b/app/finders/user_recent_events_finder.rb @@ -31,7 +31,7 @@ class UserRecentEventsFinder recent_events(params[:offset] || 0) .joins(:project) .with_associations - .limit_recent(LIMIT, params[:offset]) + .limit_recent(params[:limit].presence || LIMIT, params[:offset]) end # rubocop: enable CodeReuse/ActiveRecord |