diff --git a/Gemfile.lock b/Gemfile.lock index bd4377ca..cb000dda 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -8,94 +8,97 @@ PATH GEM remote: https://rubygems.org/ specs: - actionpack (5.2.4.3) - actionview (= 5.2.4.3) - activesupport (= 5.2.4.3) + actionpack (5.2.6) + actionview (= 5.2.6) + activesupport (= 5.2.6) rack (~> 2.0, >= 2.0.8) rack-test (>= 0.6.3) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (5.2.4.3) - activesupport (= 5.2.4.3) + actionview (5.2.6) + activesupport (= 5.2.6) builder (~> 3.1) erubi (~> 1.4) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.0.3) - activemodel (5.2.4.3) - activesupport (= 5.2.4.3) - activerecord (5.2.4.3) - activemodel (= 5.2.4.3) - activesupport (= 5.2.4.3) + activemodel (5.2.6) + activesupport (= 5.2.6) + activerecord (5.2.6) + activemodel (= 5.2.6) + activesupport (= 5.2.6) arel (>= 9.0) - activesupport (5.2.4.3) + activesupport (5.2.6) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 0.7, < 2) minitest (~> 5.1) tzinfo (~> 1.1) arel (9.0.0) builder (3.2.4) - coderay (1.1.2) - concurrent-ruby (1.1.6) + coderay (1.1.3) + concurrent-ruby (1.1.9) crass (1.0.6) - database_cleaner (1.8.5) + database_cleaner (2.0.1) + database_cleaner-active_record (~> 2.0.0) + database_cleaner-active_record (2.0.1) + activerecord (>= 5.a) + database_cleaner-core (~> 2.0.0) + database_cleaner-core (2.0.1) db-query-matchers (0.10.0) activesupport (>= 4.0, < 7) rspec (~> 3.0) - diff-lcs (1.3) - erubi (1.9.0) - i18n (1.8.2) + diff-lcs (1.4.4) + erubi (1.10.0) + i18n (1.8.10) concurrent-ruby (~> 1.0) - loofah (2.5.0) + loofah (2.12.0) crass (~> 1.0.2) nokogiri (>= 1.5.9) method_source (0.9.2) mini_portile2 (2.4.0) - minitest (5.14.1) + minitest (5.14.4) mysql2 (0.4.10) - nokogiri (1.10.9) + nokogiri (1.10.10) mini_portile2 (~> 2.4.0) pry (0.12.2) coderay (~> 1.1.0) method_source (~> 0.9.0) pry-nav (0.3.0) pry (>= 0.9.10, < 0.13.0) - rack (2.2.2) + rack (2.2.3) rack-test (1.1.0) rack (>= 1.0, < 3) rails-dom-testing (2.0.3) activesupport (>= 4.2.0) nokogiri (>= 1.6) - rails-html-sanitizer (1.3.0) + rails-html-sanitizer (1.4.2) loofah (~> 2.3) - rake (13.0.1) - redcarpet (3.5.0) - rr (1.2.1) - rspec (3.9.0) - rspec-core (~> 3.9.0) - rspec-expectations (~> 3.9.0) - rspec-mocks (~> 3.9.0) - rspec-core (3.9.2) - rspec-support (~> 3.9.3) - rspec-expectations (3.9.2) + rake (13.0.6) + redcarpet (3.5.1) + rr (3.0.7) + rspec (3.10.0) + rspec-core (~> 3.10.0) + rspec-expectations (~> 3.10.0) + rspec-mocks (~> 3.10.0) + rspec-core (3.10.1) + rspec-support (~> 3.10.0) + rspec-expectations (3.10.1) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.9.0) - rspec-mocks (3.9.1) + rspec-support (~> 3.10.0) + rspec-mocks (3.10.2) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.9.0) - rspec-support (3.9.3) + rspec-support (~> 3.10.0) + rspec-support (3.10.2) sqlite3 (1.4.2) thread_safe (0.3.6) - tzinfo (1.2.7) + tzinfo (1.2.9) thread_safe (~> 0.1) - yard (0.9.25) + yard (0.9.26) PLATFORMS ruby DEPENDENCIES actionpack - activerecord (~> 5.2.0) - activesupport (~> 5.2.0) brainstem! database_cleaner db-query-matchers diff --git a/lib/brainstem/query_strategies/base_strategy.rb b/lib/brainstem/query_strategies/base_strategy.rb index a9333c93..b31599b5 100644 --- a/lib/brainstem/query_strategies/base_strategy.rb +++ b/lib/brainstem/query_strategies/base_strategy.rb @@ -64,7 +64,7 @@ def use_calc_row? end def delegate_count_to_presenter? - primary_presenter.evaluate_count? + primary_presenter&.evaluate_count? end def calculate_limit