From 3e1a21c38fd27a51c10632060034fe19b66b108e Mon Sep 17 00:00:00 2001 From: murb Date: Sun, 7 Jan 2024 19:45:17 +0100 Subject: [PATCH] bundle update --- Gemfile.lock | 328 +++++++++--------- app/controllers/batch/base_form.rb | 4 +- app/controllers/concerns/base_controller.rb | 8 +- app/controllers/works/zip_response.rb | 2 +- app/helpers/application_helper.rb | 4 +- app/helpers/works_helper.rb | 2 +- app/models/ability.rb | 2 +- app/models/artist.rb | 6 +- app/models/batch_photo_upload.rb | 2 +- app/models/collection/hierarchy.rb | 2 +- app/models/concerns/fast_aggregatable.rb | 2 +- .../concerns/has_collection_attributes.rb | 2 +- app/models/concerns/method_cache.rb | 4 +- app/models/concerns/o_auth_user.rb | 2 +- .../import_collection/class_association.rb | 2 +- app/models/import_collection/workbook.rb | 2 +- app/models/location.rb | 4 +- app/models/report/builder_helpers.rb | 6 +- app/models/simple_artist.rb | 2 +- app/models/time_span.rb | 7 +- app/models/user.rb | 6 +- app/models/work.rb | 2 +- app/models/work/time_spans.rb | 2 +- app/workers/update_cache_worker.rb | 2 +- config/initializers/attr_localized.rb | 2 +- ...143_fix_string_values_to_nil_when_empty.rb | 2 +- spec/requests/name_id_editor_spec.rb | 6 +- 27 files changed, 214 insertions(+), 201 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 204073ab..35d9dd2b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -6,7 +6,7 @@ GIT GIT remote: https://github.com/murb/omniauth-azure-activedirectory.git - revision: ac7f53812bed8aab4b4b7c7057f7870d5b993d25 + revision: 5c771f66e4c9fe79ab97cc5a103f78455aa58b1d specs: omniauth-azure-activedirectory (1.1.0) jwt (~> 2.2.2) @@ -41,76 +41,86 @@ GIT GEM remote: https://rubygems.org/ specs: + abbrev (0.1.2) act_as_time_as_boolean (1.0.1) activesupport (>= 3.2) - actioncable (7.0.8) - actionpack (= 7.0.8) - activesupport (= 7.0.8) + actioncable (7.1.2) + actionpack (= 7.1.2) + activesupport (= 7.1.2) nio4r (~> 2.0) websocket-driver (>= 0.6.1) - actionmailbox (7.0.8) - actionpack (= 7.0.8) - activejob (= 7.0.8) - activerecord (= 7.0.8) - activestorage (= 7.0.8) - activesupport (= 7.0.8) + zeitwerk (~> 2.6) + actionmailbox (7.1.2) + actionpack (= 7.1.2) + activejob (= 7.1.2) + activerecord (= 7.1.2) + activestorage (= 7.1.2) + activesupport (= 7.1.2) mail (>= 2.7.1) net-imap net-pop net-smtp - actionmailer (7.0.8) - actionpack (= 7.0.8) - actionview (= 7.0.8) - activejob (= 7.0.8) - activesupport (= 7.0.8) + actionmailer (7.1.2) + actionpack (= 7.1.2) + actionview (= 7.1.2) + activejob (= 7.1.2) + activesupport (= 7.1.2) mail (~> 2.5, >= 2.5.4) net-imap net-pop net-smtp - rails-dom-testing (~> 2.0) - actionpack (7.0.8) - actionview (= 7.0.8) - activesupport (= 7.0.8) - rack (~> 2.0, >= 2.2.4) + rails-dom-testing (~> 2.2) + actionpack (7.1.2) + actionview (= 7.1.2) + activesupport (= 7.1.2) + nokogiri (>= 1.8.5) + racc + rack (>= 2.2.4) + rack-session (>= 1.0.1) rack-test (>= 0.6.3) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (7.0.8) - actionpack (= 7.0.8) - activerecord (= 7.0.8) - activestorage (= 7.0.8) - activesupport (= 7.0.8) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + actiontext (7.1.2) + actionpack (= 7.1.2) + activerecord (= 7.1.2) + activestorage (= 7.1.2) + activesupport (= 7.1.2) globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (7.0.8) - activesupport (= 7.0.8) + actionview (7.1.2) + activesupport (= 7.1.2) builder (~> 3.1) - erubi (~> 1.4) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.1, >= 1.2.0) - activejob (7.0.8) - activesupport (= 7.0.8) + erubi (~> 1.11) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + activejob (7.1.2) + activesupport (= 7.1.2) globalid (>= 0.3.6) - activemodel (7.0.8) - activesupport (= 7.0.8) - activerecord (7.0.8) - activemodel (= 7.0.8) - activesupport (= 7.0.8) - activestorage (7.0.8) - actionpack (= 7.0.8) - activejob (= 7.0.8) - activerecord (= 7.0.8) - activesupport (= 7.0.8) + activemodel (7.1.2) + activesupport (= 7.1.2) + activerecord (7.1.2) + activemodel (= 7.1.2) + activesupport (= 7.1.2) + timeout (>= 0.4.0) + activestorage (7.1.2) + actionpack (= 7.1.2) + activejob (= 7.1.2) + activerecord (= 7.1.2) + activesupport (= 7.1.2) marcel (~> 1.0) - mini_mime (>= 1.1.0) - activesupport (7.0.8) + activesupport (7.1.2) + base64 + bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) + connection_pool (>= 2.2.5) + drb i18n (>= 1.6, < 2) minitest (>= 5.1) + mutex_m tzinfo (~> 2.0) - acts-as-taggable-on (9.0.1) - activerecord (>= 6.0, < 7.1) - addressable (2.8.5) + acts-as-taggable-on (10.0.0) + activerecord (>= 6.1, < 7.2) + addressable (2.8.6) public_suffix (>= 2.0.2, < 6.0) airbrussh (1.5.0) sshkit (>= 1.6.1, != 1.7.0) @@ -119,22 +129,23 @@ GEM rake (>= 10.4, < 14.0) ast (2.4.2) attribute_normalizer (1.2.0) - autoprefixer-rails (10.4.15.0) + autoprefixer-rails (10.4.16.0) execjs (~> 2) babel-source (5.8.35) babel-transpiler (0.7.0) babel-source (>= 4.0, < 6) execjs (~> 2.0) - base64 (0.1.1) - bcrypt (3.1.19) + base64 (0.2.0) + bcrypt (3.1.20) + bigdecimal (3.1.5) bindex (0.8.1) - bootsnap (1.16.0) + bootsnap (1.17.0) msgpack (~> 1.2) brpoplpush-redis_script (0.1.3) concurrent-ruby (~> 1.0, >= 1.0.5) redis (>= 1.0, < 6) builder (3.2.4) - bullet (7.1.1) + bullet (7.1.5) activesupport (>= 3.0.0) uniform_notifier (~> 1.11) bundler-audit (0.9.1) @@ -142,7 +153,7 @@ GEM thor (~> 1.0) byebug (11.1.3) cancancan (3.5.0) - capistrano (3.17.3) + capistrano (3.18.0) airbrussh (>= 1.0.0) i18n rake (>= 10.0.0) @@ -168,7 +179,7 @@ GEM rack-test (>= 0.6.3) regexp_parser (>= 1.5, < 3.0) xpath (~> 3.2) - carrierwave (2.2.4) + carrierwave (2.2.5) activemodel (>= 5.0.0) activesupport (>= 5.0.0) addressable (~> 2.6) @@ -179,7 +190,7 @@ GEM carrierwave-imageoptimizer (1.6.0) carrierwave (>= 0.8, < 3.0) image_optimizer (~> 1.6) - caxlsx (3.4.1) + caxlsx (4.0.0) htmlentities (~> 4.3, >= 4.3.4) marcel (~> 1.0) nokogiri (~> 1.10, >= 1.10.4) @@ -196,8 +207,8 @@ GEM activerecord (>= 5.a) database_cleaner-core (~> 2.0.0) database_cleaner-core (2.0.1) - date (3.3.3) - devise (4.9.2) + date (3.3.4) + devise (4.9.3) bcrypt (~> 3.0) orm_adapter (~> 0.1) railties (>= 4.1.0) @@ -209,18 +220,20 @@ GEM dotenv-rails (2.8.1) dotenv (= 2.8.1) railties (>= 3.2) - elasticsearch (7.17.9) - elasticsearch-api (= 7.17.9) - elasticsearch-transport (= 7.17.9) - elasticsearch-api (7.17.9) + drb (2.2.0) + ruby2_keywords + elasticsearch (7.17.10) + elasticsearch-api (= 7.17.10) + elasticsearch-transport (= 7.17.10) + elasticsearch-api (7.17.10) multi_json elasticsearch-model (7.2.1) activesupport (> 3) elasticsearch (~> 7) hashie elasticsearch-rails (7.2.1) - elasticsearch-transport (7.17.9) - faraday (~> 1) + elasticsearch-transport (7.17.10) + faraday (>= 1, < 3) multi_json erubi (1.12.0) et-orbi (1.2.7) @@ -229,29 +242,11 @@ GEM actionmailer (>= 5.2, < 8) activesupport (>= 5.2, < 8) execjs (2.9.1) - faraday (1.10.3) - faraday-em_http (~> 1.0) - faraday-em_synchrony (~> 1.0) - faraday-excon (~> 1.1) - faraday-httpclient (~> 1.0) - faraday-multipart (~> 1.0) - faraday-net_http (~> 1.0) - faraday-net_http_persistent (~> 1.0) - faraday-patron (~> 1.0) - faraday-rack (~> 1.0) - faraday-retry (~> 1.0) + faraday (2.8.1) + base64 + faraday-net_http (>= 2.0, < 3.1) ruby2_keywords (>= 0.0.4) - faraday-em_http (1.0.0) - faraday-em_synchrony (1.0.0) - faraday-excon (1.1.0) - faraday-httpclient (1.0.1) - faraday-multipart (1.0.4) - multipart-post (~> 2) - faraday-net_http (1.0.1) - faraday-net_http_persistent (1.2.0) - faraday-patron (1.0.0) - faraday-rack (1.0.0) - faraday-retry (1.0.3) + faraday-net_http (3.0.2) ffi (1.16.3) flamegraph (0.9.5) foreman (0.87.2) @@ -259,13 +254,14 @@ GEM railties (>= 3.1.0) sass (>= 3.3.0) sprockets-es6 (>= 0.9.0) - fugit (1.8.1) + fugit (1.9.0) et-orbi (~> 1, >= 1.2.7) raabro (~> 1.4) globalid (1.2.1) activesupport (>= 6.1) hashie (5.0.0) - highline (2.1.0) + highline (3.0.0) + abbrev htmlentities (4.3.4) i18n (1.14.1) concurrent-ruby (~> 1.0) @@ -275,12 +271,16 @@ GEM ruby-vips (>= 2.0.17, < 3) invisible_captcha (2.1.0) rails (>= 5.2) + io-console (0.7.1) + irb (1.11.0) + rdoc + reline (>= 0.3.8) jbuilder (2.11.5) actionview (>= 5.0.0) activesupport (>= 5.0.0) jsbundling-rails (1.2.1) railties (>= 6.0.0) - json (2.6.3) + json (2.7.1) jwt (2.2.3) keyword_finder (0.3.1) kramdown (2.4.0) @@ -295,7 +295,7 @@ GEM rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) lockbox (1.3.0) - loofah (2.21.4) + loofah (2.22.0) crass (~> 1.0.2) nokogiri (>= 1.12.0) mail (2.7.1) @@ -303,30 +303,29 @@ GEM marcel (1.0.2) matrix (0.4.2) memory_profiler (1.0.1) - method_source (1.0.0) mini_magick (4.12.0) mini_mime (1.1.5) - mini_portile2 (2.8.4) + mini_portile2 (2.8.5) minitest (5.20.0) msgpack (1.7.2) multi_json (1.15.0) multi_xml (0.6.0) - multipart-post (2.3.0) + mutex_m (0.2.0) nested_form (0.3.2) - net-imap (0.4.1) + net-imap (0.4.9.1) date net-protocol net-pop (0.1.2) net-protocol - net-protocol (0.2.1) + net-protocol (0.2.2) timeout net-scp (4.0.0) net-ssh (>= 2.6.5, < 8.0.0) - net-smtp (0.4.0) + net-smtp (0.4.0.1) net-protocol - net-ssh (7.2.0) - nio4r (2.5.9) - nokogiri (1.15.4) + net-ssh (7.2.1) + nio4r (2.7.0) + nokogiri (1.16.0) mini_portile2 (~> 2.8.2) racc (~> 1.4) oauth2 (2.0.9) @@ -336,7 +335,7 @@ GEM rack (>= 1.2, < 4) snaky_hash (~> 2.0) version_gem (~> 1.1) - omniauth (2.1.1) + omniauth (2.1.2) hashie (>= 3.4.6) rack (>= 2.2.3) rack-protection @@ -352,43 +351,51 @@ GEM actionpack (>= 4.2) omniauth (~> 2.0) orm_adapter (0.5.0) - paper_trail (15.0.0) + paper_trail (15.1.0) activerecord (>= 6.1) request_store (~> 1.4) paper_trail-association_tracking (2.2.1) paper_trail (>= 12.0) - parallel (1.23.0) - parser (3.2.2.4) + parallel (1.24.0) + parser (3.3.0.1) ast (~> 2.4.1) racc pg (1.5.4) - public_suffix (5.0.3) - puma (6.4.0) + psych (5.1.2) + stringio + public_suffix (5.0.4) + puma (6.4.1) nio4r (~> 2.0) raabro (1.4.0) - racc (1.7.1) + racc (1.7.3) rack (2.2.8) rack-headers_filter (0.0.1) - rack-mini-profiler (3.1.1) + rack-mini-profiler (3.3.0) rack (>= 1.2.0) - rack-protection (3.1.0) + rack-protection (3.2.0) + base64 (>= 0.1.0) rack (~> 2.2, >= 2.2.4) + rack-session (1.0.2) + rack (< 3) rack-test (2.1.0) rack (>= 1.3) - rails (7.0.8) - actioncable (= 7.0.8) - actionmailbox (= 7.0.8) - actionmailer (= 7.0.8) - actionpack (= 7.0.8) - actiontext (= 7.0.8) - actionview (= 7.0.8) - activejob (= 7.0.8) - activemodel (= 7.0.8) - activerecord (= 7.0.8) - activestorage (= 7.0.8) - activesupport (= 7.0.8) + rackup (1.0.0) + rack (< 3) + webrick + rails (7.1.2) + actioncable (= 7.1.2) + actionmailbox (= 7.1.2) + actionmailer (= 7.1.2) + actionpack (= 7.1.2) + actiontext (= 7.1.2) + actionview (= 7.1.2) + activejob (= 7.1.2) + activemodel (= 7.1.2) + activerecord (= 7.1.2) + activestorage (= 7.1.2) + activesupport (= 7.1.2) bundler (>= 1.15.0) - railties (= 7.0.8) + railties (= 7.1.2) rails-dom-testing (2.2.0) activesupport (>= 5.0.0) minitest @@ -396,29 +403,32 @@ GEM rails-html-sanitizer (1.6.0) loofah (~> 2.21) nokogiri (~> 1.14) - railties (7.0.8) - actionpack (= 7.0.8) - activesupport (= 7.0.8) - method_source + railties (7.1.2) + actionpack (= 7.1.2) + activesupport (= 7.1.2) + irb + rackup (>= 1.0.0) rake (>= 12.2) - thor (~> 1.0) - zeitwerk (~> 2.5) + thor (~> 1.0, >= 1.2.2) + zeitwerk (~> 2.6) rainbow (3.1.1) - rake (13.0.6) + rake (13.1.0) rb-fsevent (0.11.2) rb-inotify (0.10.1) ffi (~> 1.0) rchardet (1.8.0) + rdoc (6.6.2) + psych (>= 4.0.0) redis (4.8.1) - redis-actionpack (5.3.0) + redis-actionpack (5.4.0) actionpack (>= 5, < 8) - redis-rack (>= 2.1.0, < 3) + redis-rack (>= 2.1.0, < 4) redis-store (>= 1.1.0, < 2) redis-activesupport (5.3.0) activesupport (>= 3, < 8) redis-store (>= 1.3, < 2) - redis-rack (2.1.4) - rack (>= 2.0.8, < 3) + redis-rack (3.0.0) + rack-session (>= 0.2.0) redis-store (>= 1.2, < 2) redis-rails (5.0.2) redis-actionpack (>= 5.0, < 6) @@ -426,10 +436,12 @@ GEM redis-store (>= 1.2, < 2) redis-store (1.10.0) redis (>= 4, < 6) - regexp_parser (2.8.2) + regexp_parser (2.8.3) + reline (0.4.2) + io-console (~> 0.5) request_store (1.5.1) rack (>= 1.4) - responders (3.1.0) + responders (3.1.1) actionpack (>= 5.2) railties (>= 5.2) rexml (3.2.6) @@ -441,10 +453,10 @@ GEM rspec-mocks (3.12.6) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.12.0) - rspec-openapi (0.9.0) + rspec-openapi (0.10.0) actionpack (>= 5.2.0) rspec-core - rspec-rails (6.0.3) + rspec-rails (6.1.0) actionpack (>= 6.1) activesupport (>= 6.1) railties (>= 6.1) @@ -455,26 +467,25 @@ GEM rspec-support (3.12.1) rspec_junit_formatter (0.6.0) rspec-core (>= 2, < 4, != 2.12.0) - rubocop (1.56.4) - base64 (~> 0.1.1) + rubocop (1.59.0) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.2.2.3) + parser (>= 3.2.2.4) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.28.1, < 2.0) + rubocop-ast (>= 1.30.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.29.0) + rubocop-ast (1.30.0) parser (>= 3.2.1.0) - rubocop-performance (1.19.1) - rubocop (>= 1.7.0, < 2.0) - rubocop-ast (>= 0.4.0) + rubocop-performance (1.20.1) + rubocop (>= 1.48.1, < 2.0) + rubocop-ast (>= 1.30.0, < 2.0) ruby-ole (1.2.12.2) ruby-progressbar (1.13.0) - ruby-vips (2.1.4) + ruby-vips (2.2.0) ffi (~> 1.12) ruby2_keywords (0.0.5) rubyzip (2.3.2) @@ -503,13 +514,13 @@ GEM rufus-scheduler (~> 3.2) sidekiq (>= 6, < 8) tilt (>= 1.4.0) - sidekiq-unique-jobs (7.1.30) + sidekiq-unique-jobs (7.1.31) brpoplpush-redis_script (> 0.1.1, <= 2.0.0) concurrent-ruby (~> 1.0, >= 1.0.5) redis (< 5.0) sidekiq (>= 5.0, < 7.0) thor (>= 0.20, < 3.0) - simple_form (5.2.0) + simple_form (5.3.0) actionpack (>= 5.2) activemodel (>= 5.2) simplecov (0.22.0) @@ -537,30 +548,32 @@ GEM actionpack (>= 5.2) activesupport (>= 5.2) sprockets (>= 3.0.0) - sshkit (1.21.5) + sshkit (1.21.7) + mutex_m net-scp (>= 1.1.2) net-ssh (>= 2.8.0) ssrf_filter (1.1.2) stackprof (0.2.25) - standard (1.31.2) + standard (1.33.0) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.0) - rubocop (~> 1.56.4) + rubocop (~> 1.59.0) standard-custom (~> 1.0.0) - standard-performance (~> 1.2) + standard-performance (~> 1.3) standard-custom (1.0.2) lint_roller (~> 1.0) rubocop (~> 1.50) - standard-performance (1.2.1) + standard-performance (1.3.0) lint_roller (~> 1.1) - rubocop-performance (~> 1.19.1) - stimulus-rails (1.3.0) + rubocop-performance (~> 1.20.1) + stimulus-rails (1.3.3) railties (>= 6.0.0) + stringio (3.1.0) strip_attributes (1.13.0) activemodel (>= 3.0, < 8.0) - thor (1.2.2) + thor (1.3.0) tilt (2.3.0) - timeout (0.4.0) + timeout (0.4.1) tzinfo (2.0.6) concurrent-ruby (~> 1.0) unicode-display_width (2.5.0) @@ -573,6 +586,7 @@ GEM activemodel (>= 6.0.0) bindex (>= 0.4.0) railties (>= 6.0.0) + webrick (1.8.1) websocket-driver (0.7.6) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) diff --git a/app/controllers/batch/base_form.rb b/app/controllers/batch/base_form.rb index 75f405d8..74d1c920 100644 --- a/app/controllers/batch/base_form.rb +++ b/app/controllers/batch/base_form.rb @@ -25,7 +25,7 @@ def removable_fields end def strategy_attribute_for(field_name) - "update_#{field_name}_strategy".to_sym + :"update_#{field_name}_strategy" end def strategies_for(field_name) @@ -50,7 +50,7 @@ def strategies_for(field_name) def default_to_ignore! self.class.batch_fields.each do |field_name| - send("#{self.class.strategy_attribute_for(field_name)}=", :IGNORE) if send(self.class.strategy_attribute_for(field_name)).nil? + send(:"#{self.class.strategy_attribute_for(field_name)}=", :IGNORE) if send(self.class.strategy_attribute_for(field_name)).nil? end end diff --git a/app/controllers/concerns/base_controller.rb b/app/controllers/concerns/base_controller.rb index c9cf991c..e4b9b8cb 100644 --- a/app/controllers/concerns/base_controller.rb +++ b/app/controllers/concerns/base_controller.rb @@ -67,7 +67,7 @@ def authentication_callbacks end def named_collection_url - @collection ? send("collection_#{controlled_class.table_name}_url", @collection) : send("#{controlled_class.table_name}_url") + @collection ? send(:"collection_#{controlled_class.table_name}_url", @collection) : send(:"#{controlled_class.table_name}_url") end def singularized_name @@ -75,15 +75,15 @@ def singularized_name end def named_collection_variable= values - instance_variable_set("@#{controlled_class.table_name}", values) + instance_variable_set(:"@#{controlled_class.table_name}", values) end def named_variable= value - instance_variable_set("@#{singularized_name}", value) + instance_variable_set(:"@#{singularized_name}", value) end def named_variable - instance_variable_get("@#{singularized_name}") + instance_variable_get(:"@#{singularized_name}") end def set_named_variable_by_class diff --git a/app/controllers/works/zip_response.rb b/app/controllers/works/zip_response.rb index b8c30531..21fda280 100644 --- a/app/controllers/works/zip_response.rb +++ b/app/controllers/works/zip_response.rb @@ -18,7 +18,7 @@ def show_zip_response @works.each do |work| base_file_name = work.base_file_name file_editions.each do |field| - if work.send("#{field}?".to_sym) + if work.send(:"#{field}?") filename_components = [base_file_name] filename_components << field.gsub("photo_", "") unless only_front filename = "#{filename_components.join("_")}.jpg" diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 38c0893a..3987cbcd 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -52,10 +52,10 @@ def works_modified_forms_path options = {} def link_to_edit item if item.is_a? Array item_part = item.collect { |a| a.class.model_name.singular }.join("_") - url = send("edit_#{item_part}_path".to_sym, *item) + url = send(:"edit_#{item_part}_path", *item) name = item.last.name else - url = send("edit_#{item.class.model_name.singular}_path".to_sym, item) + url = send(:"edit_#{item.class.model_name.singular}_path", item) name = item.name end link_to name, url diff --git a/app/helpers/works_helper.rb b/app/helpers/works_helper.rb index fe43b7ad..9aef43ce 100644 --- a/app/helpers/works_helper.rb +++ b/app/helpers/works_helper.rb @@ -64,7 +64,7 @@ def filter_hidden field_name def options_from_aggregation_for_select aggregation, selected = nil html = "" aggregation.each do |k, v| - selected_true = (selected && (selected == k) || (selected.methods.include?(:include?) && selected.collect { |a| a.to_param }.include?(k.to_param))) + selected_true = selected && (selected == k) || (selected.methods.include?(:include?) && selected.collect { |a| a.to_param }.include?(k.to_param)) html += "