From 4f257617e37a2b5af99a0c4686478b7c1ed280ac Mon Sep 17 00:00:00 2001 From: Mattia Roccoberton Date: Sun, 10 Sep 2023 14:55:54 +0200 Subject: [PATCH 1/2] feat: change ActiveAdmin dependency version range --- activeadmin_dynamic_fields.gemspec | 2 +- gemfiles/rails52_activeadmin20.gemfile.lock | 2 +- gemfiles/rails60_activeadmin.gemfile.lock | 2 +- gemfiles/rails60_activeadmin22.gemfile.lock | 2 +- gemfiles/rails61_activeadmin.gemfile.lock | 2 +- gemfiles/rails61_activeadmin29.gemfile.lock | 2 +- gemfiles/rails70_activeadmin.gemfile.lock | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/activeadmin_dynamic_fields.gemspec b/activeadmin_dynamic_fields.gemspec index 16046fe..09afe3a 100644 --- a/activeadmin_dynamic_fields.gemspec +++ b/activeadmin_dynamic_fields.gemspec @@ -21,7 +21,7 @@ Gem::Specification.new do |spec| spec.files = Dir['{app,lib}/**/*', 'LICENSE.txt', 'Rakefile', 'README.md'] spec.require_paths = ['lib'] - spec.add_runtime_dependency 'activeadmin', '~> 2.0' + spec.add_runtime_dependency 'activeadmin', '>= 2.0', '< 4' spec.add_development_dependency 'appraisal', '~> 2.4' end diff --git a/gemfiles/rails52_activeadmin20.gemfile.lock b/gemfiles/rails52_activeadmin20.gemfile.lock index c419b03..888338d 100644 --- a/gemfiles/rails52_activeadmin20.gemfile.lock +++ b/gemfiles/rails52_activeadmin20.gemfile.lock @@ -2,7 +2,7 @@ PATH remote: .. specs: activeadmin_dynamic_fields (0.7.0) - activeadmin (~> 2.0) + activeadmin (>= 2.0, < 4) GEM remote: https://rubygems.org/ diff --git a/gemfiles/rails60_activeadmin.gemfile.lock b/gemfiles/rails60_activeadmin.gemfile.lock index df1059e..18535d0 100644 --- a/gemfiles/rails60_activeadmin.gemfile.lock +++ b/gemfiles/rails60_activeadmin.gemfile.lock @@ -2,7 +2,7 @@ PATH remote: .. specs: activeadmin_dynamic_fields (0.7.0) - activeadmin (~> 2.0) + activeadmin (>= 2.0, < 4) GEM remote: https://rubygems.org/ diff --git a/gemfiles/rails60_activeadmin22.gemfile.lock b/gemfiles/rails60_activeadmin22.gemfile.lock index ed728a6..fd0f9fc 100644 --- a/gemfiles/rails60_activeadmin22.gemfile.lock +++ b/gemfiles/rails60_activeadmin22.gemfile.lock @@ -2,7 +2,7 @@ PATH remote: .. specs: activeadmin_dynamic_fields (0.7.0) - activeadmin (~> 2.0) + activeadmin (>= 2.0, < 4) GEM remote: https://rubygems.org/ diff --git a/gemfiles/rails61_activeadmin.gemfile.lock b/gemfiles/rails61_activeadmin.gemfile.lock index ff86b5c..14ef01f 100644 --- a/gemfiles/rails61_activeadmin.gemfile.lock +++ b/gemfiles/rails61_activeadmin.gemfile.lock @@ -2,7 +2,7 @@ PATH remote: .. specs: activeadmin_dynamic_fields (0.7.0) - activeadmin (~> 2.0) + activeadmin (>= 2.0, < 4) GEM remote: https://rubygems.org/ diff --git a/gemfiles/rails61_activeadmin29.gemfile.lock b/gemfiles/rails61_activeadmin29.gemfile.lock index bdd80cc..bf0e501 100644 --- a/gemfiles/rails61_activeadmin29.gemfile.lock +++ b/gemfiles/rails61_activeadmin29.gemfile.lock @@ -2,7 +2,7 @@ PATH remote: .. specs: activeadmin_dynamic_fields (0.7.0) - activeadmin (~> 2.0) + activeadmin (>= 2.0, < 4) GEM remote: https://rubygems.org/ diff --git a/gemfiles/rails70_activeadmin.gemfile.lock b/gemfiles/rails70_activeadmin.gemfile.lock index eaed4e7..f73030f 100644 --- a/gemfiles/rails70_activeadmin.gemfile.lock +++ b/gemfiles/rails70_activeadmin.gemfile.lock @@ -2,7 +2,7 @@ PATH remote: .. specs: activeadmin_dynamic_fields (0.7.0) - activeadmin (~> 2.0) + activeadmin (>= 2.0, < 4) GEM remote: https://rubygems.org/ From 43eb9d9818377f32079b8cfa5c3ec3ded1890c63 Mon Sep 17 00:00:00 2001 From: Mattia Roccoberton Date: Sun, 10 Sep 2023 16:03:41 +0200 Subject: [PATCH 2/2] chore: update test suite configuration --- .github/workflows/specs.yml | 4 +- .github/workflows/specs2.yml | 2 +- .github/workflows/specs3.yml | 2 +- Appraisals | 11 - extra/README.md | 2 +- gemfiles/rails52_activeadmin20.gemfile | 26 -- gemfiles/rails52_activeadmin20.gemfile.lock | 311 ------------------ gemfiles/rails60_activeadmin22.gemfile | 27 -- gemfiles/rails60_activeadmin22.gemfile.lock | 333 ------------------- gemfiles/rails70_activeadmin.gemfile.lock | 339 ++++++++++---------- spec/dummy/app/models/author.rb | 6 + spec/dummy/app/models/post.rb | 10 + spec/dummy/app/models/post_tag.rb | 6 + spec/dummy/app/models/profile.rb | 6 + 14 files changed, 210 insertions(+), 875 deletions(-) delete mode 100644 gemfiles/rails52_activeadmin20.gemfile delete mode 100644 gemfiles/rails52_activeadmin20.gemfile.lock delete mode 100644 gemfiles/rails60_activeadmin22.gemfile delete mode 100644 gemfiles/rails60_activeadmin22.gemfile.lock diff --git a/.github/workflows/specs.yml b/.github/workflows/specs.yml index 7d93448..c00ebd3 100644 --- a/.github/workflows/specs.yml +++ b/.github/workflows/specs.yml @@ -13,8 +13,8 @@ jobs: strategy: matrix: - ruby: ['2.6', '2.7'] - gemfile: ['rails60_activeadmin22', 'rails60_activeadmin'] + ruby: ['2.7'] + gemfile: ['rails60_activeadmin'] env: BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile diff --git a/.github/workflows/specs2.yml b/.github/workflows/specs2.yml index e2255ed..89c04d7 100644 --- a/.github/workflows/specs2.yml +++ b/.github/workflows/specs2.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - ruby: ['2.6', '2.7', '3.0'] + ruby: ['2.7', '3.0'] gemfile: ['rails61_activeadmin29', 'rails61_activeadmin'] env: diff --git a/.github/workflows/specs3.yml b/.github/workflows/specs3.yml index fef2a73..6f082a8 100644 --- a/.github/workflows/specs3.yml +++ b/.github/workflows/specs3.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - ruby: ['2.7', '3.0'] + ruby: ['3.0', '3.1', '3.2'] gemfile: ['rails70_activeadmin'] env: diff --git a/Appraisals b/Appraisals index a8d44e7..e1710d6 100644 --- a/Appraisals +++ b/Appraisals @@ -1,16 +1,5 @@ # frozen_string_literal: true -appraise 'rails52-activeadmin20' do - gem 'activeadmin', '~> 2.0.0' - gem 'rails', '~> 5.2.0' -end - -appraise 'rails60-activeadmin22' do - gem 'activeadmin', '~> 2.2.0' - gem 'rails', '~> 6.0.0' - gem 'selenium-webdriver', require: false -end - appraise 'rails60-activeadmin' do gem 'activeadmin' gem 'rails', '~> 6.0.0' diff --git a/extra/README.md b/extra/README.md index cf3add8..87df75f 100644 --- a/extra/README.md +++ b/extra/README.md @@ -12,7 +12,7 @@ bin/appraisal ```sh # Running specs using a specific configuration: -bin/appraisal rails60-activeadmin22 rspec +bin/appraisal rails61-activeadmin29 rspec # Using latest activeadmin version: bin/appraisal rails60-activeadmin rspec # See gemfiles for more configurations diff --git a/gemfiles/rails52_activeadmin20.gemfile b/gemfiles/rails52_activeadmin20.gemfile deleted file mode 100644 index c0af10f..0000000 --- a/gemfiles/rails52_activeadmin20.gemfile +++ /dev/null @@ -1,26 +0,0 @@ -# This file was generated by Appraisal - -source "https://rubygems.org" - -gem "activeadmin", "~> 2.0.0" -gem "rails", "~> 5.2.0" - -group :development, :test do - gem "puma" - gem "sassc" - gem "sqlite3" - gem "capybara" - gem "cuprite" - gem "rspec_junit_formatter" - gem "rspec-rails" - gem "rspec-retry" - gem "fasterer" - gem "rubocop" - gem "rubocop-packaging" - gem "rubocop-performance" - gem "rubocop-rails" - gem "rubocop-rspec" - gem "pry-rails" -end - -gemspec path: "../" diff --git a/gemfiles/rails52_activeadmin20.gemfile.lock b/gemfiles/rails52_activeadmin20.gemfile.lock deleted file mode 100644 index 888338d..0000000 --- a/gemfiles/rails52_activeadmin20.gemfile.lock +++ /dev/null @@ -1,311 +0,0 @@ -PATH - remote: .. - specs: - activeadmin_dynamic_fields (0.7.0) - activeadmin (>= 2.0, < 4) - -GEM - remote: https://rubygems.org/ - specs: - actioncable (5.2.7) - actionpack (= 5.2.7) - nio4r (~> 2.0) - websocket-driver (>= 0.6.1) - actionmailer (5.2.7) - actionpack (= 5.2.7) - actionview (= 5.2.7) - activejob (= 5.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 2.0) - actionpack (5.2.7) - actionview (= 5.2.7) - activesupport (= 5.2.7) - 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.7) - activesupport (= 5.2.7) - builder (~> 3.1) - erubi (~> 1.4) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.0.3) - activeadmin (2.0.0) - arbre (~> 1.2, >= 1.2.1) - formtastic (~> 3.1) - formtastic_i18n (~> 0.4) - inherited_resources (~> 1.7) - jquery-rails (~> 4.2) - kaminari (~> 1.0, >= 1.0.1) - railties (>= 5.0, < 6.0) - ransack (~> 2.1, >= 2.1.1) - sass (~> 3.4) - sprockets (>= 3.0, < 4.1) - sprockets-es6 (~> 0.9, >= 0.9.2) - activejob (5.2.7) - activesupport (= 5.2.7) - globalid (>= 0.3.6) - activemodel (5.2.7) - activesupport (= 5.2.7) - activerecord (5.2.7) - activemodel (= 5.2.7) - activesupport (= 5.2.7) - arel (>= 9.0) - activestorage (5.2.7) - actionpack (= 5.2.7) - activerecord (= 5.2.7) - marcel (~> 1.0.0) - activesupport (5.2.7) - concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 0.7, < 2) - minitest (~> 5.1) - tzinfo (~> 1.1) - addressable (2.8.0) - public_suffix (>= 2.0.2, < 5.0) - appraisal (2.4.1) - bundler - rake - thor (>= 0.14.0) - arbre (1.5.0) - activesupport (>= 3.0.0, < 7.1) - ruby2_keywords (>= 0.0.2, < 1.0) - arel (9.0.0) - ast (2.4.2) - babel-source (5.8.35) - babel-transpiler (0.7.0) - babel-source (>= 4.0, < 6) - execjs (~> 2.0) - builder (3.2.4) - capybara (3.36.0) - addressable - matrix - mini_mime (>= 0.1.3) - nokogiri (~> 1.8) - rack (>= 1.6.0) - rack-test (>= 0.6.3) - regexp_parser (>= 1.5, < 3.0) - xpath (~> 3.2) - cliver (0.3.2) - coderay (1.1.3) - colorize (0.8.1) - concurrent-ruby (1.1.9) - crass (1.0.6) - cuprite (0.13) - capybara (>= 2.1, < 4) - ferrum (~> 0.11.0) - diff-lcs (1.5.0) - erubi (1.10.0) - execjs (2.8.1) - fasterer (0.9.0) - colorize (~> 0.7) - ruby_parser (>= 3.14.1) - ferrum (0.11) - addressable (~> 2.5) - cliver (~> 0.3) - concurrent-ruby (~> 1.1) - websocket-driver (>= 0.6, < 0.8) - ffi (1.15.5) - formtastic (3.1.5) - actionpack (>= 3.2.13) - formtastic_i18n (0.7.0) - globalid (1.0.0) - activesupport (>= 5.0) - has_scope (0.8.0) - actionpack (>= 5.2) - activesupport (>= 5.2) - i18n (1.10.0) - concurrent-ruby (~> 1.0) - inherited_resources (1.13.1) - actionpack (>= 5.2, < 7.1) - has_scope (~> 0.6) - railties (>= 5.2, < 7.1) - responders (>= 2, < 4) - jquery-rails (4.4.0) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - kaminari (1.2.2) - activesupport (>= 4.1.0) - kaminari-actionview (= 1.2.2) - kaminari-activerecord (= 1.2.2) - kaminari-core (= 1.2.2) - kaminari-actionview (1.2.2) - actionview - kaminari-core (= 1.2.2) - kaminari-activerecord (1.2.2) - activerecord - kaminari-core (= 1.2.2) - kaminari-core (1.2.2) - loofah (2.14.0) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.1) - mini_mime (>= 0.1.1) - marcel (1.0.2) - matrix (0.4.2) - method_source (1.0.0) - mini_mime (1.1.2) - minitest (5.15.0) - nio4r (2.5.8) - nokogiri (1.13.3-x86_64-darwin) - racc (~> 1.4) - nokogiri (1.13.3-x86_64-linux) - racc (~> 1.4) - parallel (1.21.0) - parser (3.1.1.0) - ast (~> 2.4.1) - pry (0.14.1) - coderay (~> 1.1) - method_source (~> 1.0) - pry-rails (0.3.9) - pry (>= 0.10.4) - public_suffix (4.0.6) - puma (5.6.2) - nio4r (~> 2.0) - racc (1.6.0) - rack (2.2.3) - rack-test (1.1.0) - rack (>= 1.0, < 3) - rails (5.2.7) - actioncable (= 5.2.7) - actionmailer (= 5.2.7) - actionpack (= 5.2.7) - actionview (= 5.2.7) - activejob (= 5.2.7) - activemodel (= 5.2.7) - activerecord (= 5.2.7) - activestorage (= 5.2.7) - activesupport (= 5.2.7) - bundler (>= 1.3.0) - railties (= 5.2.7) - sprockets-rails (>= 2.0.0) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) - nokogiri (>= 1.6) - rails-html-sanitizer (1.4.2) - loofah (~> 2.3) - railties (5.2.7) - actionpack (= 5.2.7) - activesupport (= 5.2.7) - method_source - rake (>= 0.8.7) - thor (>= 0.19.0, < 2.0) - rainbow (3.1.1) - rake (13.0.6) - ransack (2.5.0) - activerecord (>= 5.2.4) - activesupport (>= 5.2.4) - i18n - rb-fsevent (0.11.1) - rb-inotify (0.10.1) - ffi (~> 1.0) - regexp_parser (2.2.1) - responders (3.0.1) - actionpack (>= 5.0) - railties (>= 5.0) - rexml (3.2.5) - rspec-core (3.11.0) - rspec-support (~> 3.11.0) - rspec-expectations (3.11.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-mocks (3.11.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-rails (5.1.1) - actionpack (>= 5.2) - activesupport (>= 5.2) - railties (>= 5.2) - rspec-core (~> 3.10) - rspec-expectations (~> 3.10) - rspec-mocks (~> 3.10) - rspec-support (~> 3.10) - rspec-retry (0.6.2) - rspec-core (> 3.3) - rspec-support (3.11.0) - rspec_junit_formatter (0.5.1) - rspec-core (>= 2, < 4, != 2.12.0) - rubocop (1.26.0) - parallel (~> 1.10) - parser (>= 3.1.0.0) - rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.8, < 3.0) - rexml - rubocop-ast (>= 1.16.0, < 2.0) - ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 3.0) - rubocop-ast (1.16.0) - parser (>= 3.1.1.0) - rubocop-packaging (0.5.1) - rubocop (>= 0.89, < 2.0) - rubocop-performance (1.13.3) - rubocop (>= 1.7.0, < 2.0) - rubocop-ast (>= 0.4.0) - rubocop-rails (2.13.2) - activesupport (>= 4.2.0) - rack (>= 1.1) - rubocop (>= 1.7.0, < 2.0) - rubocop-rspec (2.9.0) - rubocop (~> 1.19) - ruby-progressbar (1.11.0) - ruby2_keywords (0.0.5) - ruby_parser (3.18.1) - sexp_processor (~> 4.16) - sass (3.7.4) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sassc (2.4.0) - ffi (~> 1.9) - sexp_processor (4.16.0) - sprockets (4.0.3) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-es6 (0.9.2) - babel-source (>= 5.8.11) - babel-transpiler - sprockets (>= 3.0.0) - sprockets-rails (3.4.2) - actionpack (>= 5.2) - activesupport (>= 5.2) - sprockets (>= 3.0.0) - sqlite3 (1.4.2) - thor (1.2.1) - thread_safe (0.3.6) - tzinfo (1.2.9) - thread_safe (~> 0.1) - unicode-display_width (2.1.0) - websocket-driver (0.7.5) - websocket-extensions (>= 0.1.0) - websocket-extensions (0.1.5) - xpath (3.2.0) - nokogiri (~> 1.8) - -PLATFORMS - x86_64-darwin-21 - x86_64-linux - -DEPENDENCIES - activeadmin (~> 2.0.0) - activeadmin_dynamic_fields! - appraisal (~> 2.4) - capybara - cuprite - fasterer - pry-rails - puma - rails (~> 5.2.0) - rspec-rails - rspec-retry - rspec_junit_formatter - rubocop - rubocop-packaging - rubocop-performance - rubocop-rails - rubocop-rspec - sassc - sqlite3 - -BUNDLED WITH - 2.3.8 diff --git a/gemfiles/rails60_activeadmin22.gemfile b/gemfiles/rails60_activeadmin22.gemfile deleted file mode 100644 index da0d476..0000000 --- a/gemfiles/rails60_activeadmin22.gemfile +++ /dev/null @@ -1,27 +0,0 @@ -# This file was generated by Appraisal - -source "https://rubygems.org" - -gem "activeadmin", "~> 2.2.0" -gem "rails", "~> 6.0.0" -gem "selenium-webdriver", require: false - -group :development, :test do - gem "puma" - gem "sassc" - gem "sqlite3" - gem "capybara" - gem "cuprite" - gem "rspec_junit_formatter" - gem "rspec-rails" - gem "rspec-retry" - gem "fasterer" - gem "rubocop" - gem "rubocop-packaging" - gem "rubocop-performance" - gem "rubocop-rails" - gem "rubocop-rspec" - gem "pry-rails" -end - -gemspec path: "../" diff --git a/gemfiles/rails60_activeadmin22.gemfile.lock b/gemfiles/rails60_activeadmin22.gemfile.lock deleted file mode 100644 index fd0f9fc..0000000 --- a/gemfiles/rails60_activeadmin22.gemfile.lock +++ /dev/null @@ -1,333 +0,0 @@ -PATH - remote: .. - specs: - activeadmin_dynamic_fields (0.7.0) - activeadmin (>= 2.0, < 4) - -GEM - remote: https://rubygems.org/ - specs: - actioncable (6.0.4.7) - actionpack (= 6.0.4.7) - nio4r (~> 2.0) - websocket-driver (>= 0.6.1) - actionmailbox (6.0.4.7) - actionpack (= 6.0.4.7) - activejob (= 6.0.4.7) - activerecord (= 6.0.4.7) - activestorage (= 6.0.4.7) - activesupport (= 6.0.4.7) - mail (>= 2.7.1) - actionmailer (6.0.4.7) - actionpack (= 6.0.4.7) - actionview (= 6.0.4.7) - activejob (= 6.0.4.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 2.0) - actionpack (6.0.4.7) - actionview (= 6.0.4.7) - activesupport (= 6.0.4.7) - rack (~> 2.0, >= 2.0.8) - rack-test (>= 0.6.3) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (6.0.4.7) - actionpack (= 6.0.4.7) - activerecord (= 6.0.4.7) - activestorage (= 6.0.4.7) - activesupport (= 6.0.4.7) - nokogiri (>= 1.8.5) - actionview (6.0.4.7) - activesupport (= 6.0.4.7) - builder (~> 3.1) - erubi (~> 1.4) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.1, >= 1.2.0) - activeadmin (2.2.0) - arbre (~> 1.2, >= 1.2.1) - formtastic (~> 3.1) - formtastic_i18n (~> 0.4) - inherited_resources (~> 1.7) - jquery-rails (~> 4.2) - kaminari (~> 1.0, >= 1.0.1) - railties (>= 5.0, < 6.1) - ransack (~> 2.1, >= 2.1.1) - sassc-rails (~> 2.1) - sprockets (>= 3.0, < 4.1) - sprockets-es6 (~> 0.9, >= 0.9.2) - activejob (6.0.4.7) - activesupport (= 6.0.4.7) - globalid (>= 0.3.6) - activemodel (6.0.4.7) - activesupport (= 6.0.4.7) - activerecord (6.0.4.7) - activemodel (= 6.0.4.7) - activesupport (= 6.0.4.7) - activestorage (6.0.4.7) - actionpack (= 6.0.4.7) - activejob (= 6.0.4.7) - activerecord (= 6.0.4.7) - marcel (~> 1.0.0) - activesupport (6.0.4.7) - concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 0.7, < 2) - minitest (~> 5.1) - tzinfo (~> 1.1) - zeitwerk (~> 2.2, >= 2.2.2) - addressable (2.8.0) - public_suffix (>= 2.0.2, < 5.0) - appraisal (2.4.1) - bundler - rake - thor (>= 0.14.0) - arbre (1.5.0) - activesupport (>= 3.0.0, < 7.1) - ruby2_keywords (>= 0.0.2, < 1.0) - ast (2.4.2) - babel-source (5.8.35) - babel-transpiler (0.7.0) - babel-source (>= 4.0, < 6) - execjs (~> 2.0) - builder (3.2.4) - capybara (3.36.0) - addressable - matrix - mini_mime (>= 0.1.3) - nokogiri (~> 1.8) - rack (>= 1.6.0) - rack-test (>= 0.6.3) - regexp_parser (>= 1.5, < 3.0) - xpath (~> 3.2) - childprocess (4.1.0) - cliver (0.3.2) - coderay (1.1.3) - colorize (0.8.1) - concurrent-ruby (1.1.9) - crass (1.0.6) - cuprite (0.13) - capybara (>= 2.1, < 4) - ferrum (~> 0.11.0) - diff-lcs (1.5.0) - erubi (1.10.0) - execjs (2.8.1) - fasterer (0.9.0) - colorize (~> 0.7) - ruby_parser (>= 3.14.1) - ferrum (0.11) - addressable (~> 2.5) - cliver (~> 0.3) - concurrent-ruby (~> 1.1) - websocket-driver (>= 0.6, < 0.8) - ffi (1.15.5) - formtastic (3.1.5) - actionpack (>= 3.2.13) - formtastic_i18n (0.7.0) - globalid (1.0.0) - activesupport (>= 5.0) - has_scope (0.8.0) - actionpack (>= 5.2) - activesupport (>= 5.2) - i18n (1.10.0) - concurrent-ruby (~> 1.0) - inherited_resources (1.13.1) - actionpack (>= 5.2, < 7.1) - has_scope (~> 0.6) - railties (>= 5.2, < 7.1) - responders (>= 2, < 4) - jquery-rails (4.4.0) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - kaminari (1.2.2) - activesupport (>= 4.1.0) - kaminari-actionview (= 1.2.2) - kaminari-activerecord (= 1.2.2) - kaminari-core (= 1.2.2) - kaminari-actionview (1.2.2) - actionview - kaminari-core (= 1.2.2) - kaminari-activerecord (1.2.2) - activerecord - kaminari-core (= 1.2.2) - kaminari-core (1.2.2) - loofah (2.14.0) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.1) - mini_mime (>= 0.1.1) - marcel (1.0.2) - matrix (0.4.2) - method_source (1.0.0) - mini_mime (1.1.2) - minitest (5.15.0) - nio4r (2.5.8) - nokogiri (1.13.3-x86_64-darwin) - racc (~> 1.4) - nokogiri (1.13.3-x86_64-linux) - racc (~> 1.4) - parallel (1.21.0) - parser (3.1.1.0) - ast (~> 2.4.1) - pry (0.14.1) - coderay (~> 1.1) - method_source (~> 1.0) - pry-rails (0.3.9) - pry (>= 0.10.4) - public_suffix (4.0.6) - puma (5.6.2) - nio4r (~> 2.0) - racc (1.6.0) - rack (2.2.3) - rack-test (1.1.0) - rack (>= 1.0, < 3) - rails (6.0.4.7) - actioncable (= 6.0.4.7) - actionmailbox (= 6.0.4.7) - actionmailer (= 6.0.4.7) - actionpack (= 6.0.4.7) - actiontext (= 6.0.4.7) - actionview (= 6.0.4.7) - activejob (= 6.0.4.7) - activemodel (= 6.0.4.7) - activerecord (= 6.0.4.7) - activestorage (= 6.0.4.7) - activesupport (= 6.0.4.7) - bundler (>= 1.3.0) - railties (= 6.0.4.7) - sprockets-rails (>= 2.0.0) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) - nokogiri (>= 1.6) - rails-html-sanitizer (1.4.2) - loofah (~> 2.3) - railties (6.0.4.7) - actionpack (= 6.0.4.7) - activesupport (= 6.0.4.7) - method_source - rake (>= 0.8.7) - thor (>= 0.20.3, < 2.0) - rainbow (3.1.1) - rake (13.0.6) - ransack (2.6.0) - activerecord (>= 6.0.4) - activesupport (>= 6.0.4) - i18n - regexp_parser (2.2.1) - responders (3.0.1) - actionpack (>= 5.0) - railties (>= 5.0) - rexml (3.2.5) - rspec-core (3.11.0) - rspec-support (~> 3.11.0) - rspec-expectations (3.11.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-mocks (3.11.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-rails (5.1.1) - actionpack (>= 5.2) - activesupport (>= 5.2) - railties (>= 5.2) - rspec-core (~> 3.10) - rspec-expectations (~> 3.10) - rspec-mocks (~> 3.10) - rspec-support (~> 3.10) - rspec-retry (0.6.2) - rspec-core (> 3.3) - rspec-support (3.11.0) - rspec_junit_formatter (0.5.1) - rspec-core (>= 2, < 4, != 2.12.0) - rubocop (1.26.0) - parallel (~> 1.10) - parser (>= 3.1.0.0) - rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.8, < 3.0) - rexml - rubocop-ast (>= 1.16.0, < 2.0) - ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 3.0) - rubocop-ast (1.16.0) - parser (>= 3.1.1.0) - rubocop-packaging (0.5.1) - rubocop (>= 0.89, < 2.0) - rubocop-performance (1.13.3) - rubocop (>= 1.7.0, < 2.0) - rubocop-ast (>= 0.4.0) - rubocop-rails (2.13.2) - activesupport (>= 4.2.0) - rack (>= 1.1) - rubocop (>= 1.7.0, < 2.0) - rubocop-rspec (2.9.0) - rubocop (~> 1.19) - ruby-progressbar (1.11.0) - ruby2_keywords (0.0.5) - ruby_parser (3.18.1) - sexp_processor (~> 4.16) - rubyzip (2.3.2) - sassc (2.4.0) - ffi (~> 1.9) - sassc-rails (2.1.2) - railties (>= 4.0.0) - sassc (>= 2.0) - sprockets (> 3.0) - sprockets-rails - tilt - selenium-webdriver (4.1.0) - childprocess (>= 0.5, < 5.0) - rexml (~> 3.2, >= 3.2.5) - rubyzip (>= 1.2.2) - sexp_processor (4.16.0) - sprockets (4.0.3) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-es6 (0.9.2) - babel-source (>= 5.8.11) - babel-transpiler - sprockets (>= 3.0.0) - sprockets-rails (3.4.2) - actionpack (>= 5.2) - activesupport (>= 5.2) - sprockets (>= 3.0.0) - sqlite3 (1.4.2) - thor (1.2.1) - thread_safe (0.3.6) - tilt (2.0.10) - tzinfo (1.2.9) - thread_safe (~> 0.1) - unicode-display_width (2.1.0) - websocket-driver (0.7.5) - websocket-extensions (>= 0.1.0) - websocket-extensions (0.1.5) - xpath (3.2.0) - nokogiri (~> 1.8) - zeitwerk (2.5.4) - -PLATFORMS - x86_64-darwin-21 - x86_64-linux - -DEPENDENCIES - activeadmin (~> 2.2.0) - activeadmin_dynamic_fields! - appraisal (~> 2.4) - capybara - cuprite - fasterer - pry-rails - puma - rails (~> 6.0.0) - rspec-rails - rspec-retry - rspec_junit_formatter - rubocop - rubocop-packaging - rubocop-performance - rubocop-rails - rubocop-rspec - sassc - selenium-webdriver - sqlite3 - -BUNDLED WITH - 2.3.8 diff --git a/gemfiles/rails70_activeadmin.gemfile.lock b/gemfiles/rails70_activeadmin.gemfile.lock index f73030f..efca46b 100644 --- a/gemfiles/rails70_activeadmin.gemfile.lock +++ b/gemfiles/rails70_activeadmin.gemfile.lock @@ -7,92 +7,93 @@ PATH GEM remote: https://rubygems.org/ specs: - actioncable (7.0.2.3) - actionpack (= 7.0.2.3) - activesupport (= 7.0.2.3) + actioncable (7.0.8) + actionpack (= 7.0.8) + activesupport (= 7.0.8) nio4r (~> 2.0) websocket-driver (>= 0.6.1) - actionmailbox (7.0.2.3) - actionpack (= 7.0.2.3) - activejob (= 7.0.2.3) - activerecord (= 7.0.2.3) - activestorage (= 7.0.2.3) - activesupport (= 7.0.2.3) + actionmailbox (7.0.8) + actionpack (= 7.0.8) + activejob (= 7.0.8) + activerecord (= 7.0.8) + activestorage (= 7.0.8) + activesupport (= 7.0.8) mail (>= 2.7.1) net-imap net-pop net-smtp - actionmailer (7.0.2.3) - actionpack (= 7.0.2.3) - actionview (= 7.0.2.3) - activejob (= 7.0.2.3) - activesupport (= 7.0.2.3) + actionmailer (7.0.8) + actionpack (= 7.0.8) + actionview (= 7.0.8) + activejob (= 7.0.8) + activesupport (= 7.0.8) mail (~> 2.5, >= 2.5.4) net-imap net-pop net-smtp rails-dom-testing (~> 2.0) - actionpack (7.0.2.3) - actionview (= 7.0.2.3) - activesupport (= 7.0.2.3) - rack (~> 2.0, >= 2.2.0) + actionpack (7.0.8) + actionview (= 7.0.8) + activesupport (= 7.0.8) + rack (~> 2.0, >= 2.2.4) rack-test (>= 0.6.3) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (7.0.2.3) - actionpack (= 7.0.2.3) - activerecord (= 7.0.2.3) - activestorage (= 7.0.2.3) - activesupport (= 7.0.2.3) + actiontext (7.0.8) + actionpack (= 7.0.8) + activerecord (= 7.0.8) + activestorage (= 7.0.8) + activesupport (= 7.0.8) globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (7.0.2.3) - activesupport (= 7.0.2.3) + actionview (7.0.8) + activesupport (= 7.0.8) builder (~> 3.1) erubi (~> 1.4) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.1, >= 1.2.0) - activeadmin (2.11.0) + activeadmin (3.0.0) arbre (~> 1.2, >= 1.2.1) formtastic (>= 3.1, < 5.0) formtastic_i18n (~> 0.4) inherited_resources (~> 1.7) jquery-rails (~> 4.2) kaminari (~> 1.0, >= 1.2.1) - railties (>= 6.0, < 7.1) - ransack (~> 2.1, >= 2.1.1) - activejob (7.0.2.3) - activesupport (= 7.0.2.3) + railties (>= 6.1, < 7.1) + ransack (>= 4.0, < 5) + activejob (7.0.8) + activesupport (= 7.0.8) globalid (>= 0.3.6) - activemodel (7.0.2.3) - activesupport (= 7.0.2.3) - activerecord (7.0.2.3) - activemodel (= 7.0.2.3) - activesupport (= 7.0.2.3) - activestorage (7.0.2.3) - actionpack (= 7.0.2.3) - activejob (= 7.0.2.3) - activerecord (= 7.0.2.3) - activesupport (= 7.0.2.3) + 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) marcel (~> 1.0) mini_mime (>= 1.1.0) - activesupport (7.0.2.3) + activesupport (7.0.8) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 1.6, < 2) minitest (>= 5.1) tzinfo (~> 2.0) - addressable (2.8.0) - public_suffix (>= 2.0.2, < 5.0) - appraisal (2.4.1) + addressable (2.8.5) + public_suffix (>= 2.0.2, < 6.0) + appraisal (2.5.0) bundler rake thor (>= 0.14.0) - arbre (1.5.0) + arbre (1.6.0) activesupport (>= 3.0.0, < 7.1) ruby2_keywords (>= 0.0.2, < 1.0) ast (2.4.2) + base64 (0.1.1) builder (3.2.4) - capybara (3.36.0) + capybara (3.39.2) addressable matrix mini_mime (>= 0.1.3) @@ -101,46 +102,45 @@ GEM rack-test (>= 0.6.3) regexp_parser (>= 1.5, < 3.0) xpath (~> 3.2) - cliver (0.3.2) coderay (1.1.3) colorize (0.8.1) - concurrent-ruby (1.1.9) + concurrent-ruby (1.2.2) crass (1.0.6) - cuprite (0.13) - capybara (>= 2.1, < 4) - ferrum (~> 0.11.0) + cuprite (0.14.3) + capybara (~> 3.0) + ferrum (~> 0.13.0) + date (3.3.3) diff-lcs (1.5.0) - digest (3.1.0) - erubi (1.10.0) - fasterer (0.9.0) + erubi (1.12.0) + fasterer (0.10.1) colorize (~> 0.7) - ruby_parser (>= 3.14.1) - ferrum (0.11) + ruby_parser (>= 3.19.1) + ferrum (0.13) addressable (~> 2.5) - cliver (~> 0.3) concurrent-ruby (~> 1.1) + webrick (~> 1.7) websocket-driver (>= 0.6, < 0.8) ffi (1.15.5) formtastic (4.0.0) actionpack (>= 5.2.0) formtastic_i18n (0.7.0) - globalid (1.0.0) - activesupport (>= 5.0) - has_scope (0.8.0) + globalid (1.2.1) + activesupport (>= 6.1) + has_scope (0.8.1) actionpack (>= 5.2) activesupport (>= 5.2) - i18n (1.10.0) + i18n (1.14.1) concurrent-ruby (~> 1.0) inherited_resources (1.13.1) actionpack (>= 5.2, < 7.1) has_scope (~> 0.6) railties (>= 5.2, < 7.1) responders (>= 2, < 4) - io-wait (0.2.1) - jquery-rails (4.4.0) + jquery-rails (4.6.0) rails-dom-testing (>= 1, < 3) railties (>= 4.2.0) thor (>= 0.14, < 2.0) + json (2.6.3) kaminari (1.2.2) activesupport (>= 4.1.0) kaminari-actionview (= 1.2.2) @@ -153,160 +153,175 @@ GEM activerecord kaminari-core (= 1.2.2) kaminari-core (1.2.2) - loofah (2.14.0) + language_server-protocol (3.17.0.3) + loofah (2.21.3) crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.1) + nokogiri (>= 1.12.0) + mail (2.8.1) mini_mime (>= 0.1.1) + net-imap + net-pop + net-smtp marcel (1.0.2) matrix (0.4.2) method_source (1.0.0) - mini_mime (1.1.2) - minitest (5.15.0) - net-imap (0.2.3) - digest + mini_mime (1.1.5) + minitest (5.20.0) + net-imap (0.3.7) + date net-protocol - strscan - net-pop (0.1.1) - digest + net-pop (0.1.2) net-protocol + net-protocol (0.2.1) timeout - net-protocol (0.1.2) - io-wait - timeout - net-smtp (0.3.1) - digest + net-smtp (0.3.3) net-protocol - timeout - nio4r (2.5.8) - nokogiri (1.13.3-x86_64-darwin) + nio4r (2.5.9) + nokogiri (1.15.4-arm64-darwin) + racc (~> 1.4) + nokogiri (1.15.4-x86_64-darwin) racc (~> 1.4) - nokogiri (1.13.3-x86_64-linux) + nokogiri (1.15.4-x86_64-linux) racc (~> 1.4) - parallel (1.21.0) - parser (3.1.1.0) + parallel (1.23.0) + parser (3.2.2.3) ast (~> 2.4.1) - pry (0.14.1) + racc + pry (0.14.2) coderay (~> 1.1) method_source (~> 1.0) pry-rails (0.3.9) pry (>= 0.10.4) - public_suffix (4.0.6) - puma (5.6.2) + public_suffix (5.0.3) + puma (6.3.1) nio4r (~> 2.0) - racc (1.6.0) - rack (2.2.3) - rack-test (1.1.0) - rack (>= 1.0, < 3) - rails (7.0.2.3) - actioncable (= 7.0.2.3) - actionmailbox (= 7.0.2.3) - actionmailer (= 7.0.2.3) - actionpack (= 7.0.2.3) - actiontext (= 7.0.2.3) - actionview (= 7.0.2.3) - activejob (= 7.0.2.3) - activemodel (= 7.0.2.3) - activerecord (= 7.0.2.3) - activestorage (= 7.0.2.3) - activesupport (= 7.0.2.3) + racc (1.7.1) + rack (2.2.8) + 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) bundler (>= 1.15.0) - railties (= 7.0.2.3) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) + railties (= 7.0.8) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest nokogiri (>= 1.6) - rails-html-sanitizer (1.4.2) - loofah (~> 2.3) - railties (7.0.2.3) - actionpack (= 7.0.2.3) - activesupport (= 7.0.2.3) + 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 rake (>= 12.2) thor (~> 1.0) zeitwerk (~> 2.5) rainbow (3.1.1) rake (13.0.6) - ransack (2.6.0) - activerecord (>= 6.0.4) - activesupport (>= 6.0.4) + ransack (4.0.0) + activerecord (>= 6.1.5) + activesupport (>= 6.1.5) i18n - regexp_parser (2.2.1) - responders (3.0.1) - actionpack (>= 5.0) - railties (>= 5.0) - rexml (3.2.5) - rspec-core (3.11.0) - rspec-support (~> 3.11.0) - rspec-expectations (3.11.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-mocks (3.11.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-rails (5.1.1) + regexp_parser (2.8.1) + responders (3.1.0) actionpack (>= 5.2) - activesupport (>= 5.2) railties (>= 5.2) - rspec-core (~> 3.10) - rspec-expectations (~> 3.10) - rspec-mocks (~> 3.10) - rspec-support (~> 3.10) + rexml (3.2.6) + rspec-core (3.12.2) + rspec-support (~> 3.12.0) + rspec-expectations (3.12.3) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.12.0) + rspec-mocks (3.12.6) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.12.0) + rspec-rails (6.0.3) + actionpack (>= 6.1) + activesupport (>= 6.1) + railties (>= 6.1) + rspec-core (~> 3.12) + rspec-expectations (~> 3.12) + rspec-mocks (~> 3.12) + rspec-support (~> 3.12) rspec-retry (0.6.2) rspec-core (> 3.3) - rspec-support (3.11.0) - rspec_junit_formatter (0.5.1) + rspec-support (3.12.1) + rspec_junit_formatter (0.6.0) rspec-core (>= 2, < 4, != 2.12.0) - rubocop (1.26.0) + rubocop (1.56.2) + base64 (~> 0.1.1) + json (~> 2.3) + language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.1.0.0) + parser (>= 3.2.2.3) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) - rexml - rubocop-ast (>= 1.16.0, < 2.0) + rexml (>= 3.2.5, < 4.0) + rubocop-ast (>= 1.28.1, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 3.0) - rubocop-ast (1.16.0) - parser (>= 3.1.1.0) - rubocop-packaging (0.5.1) - rubocop (>= 0.89, < 2.0) - rubocop-performance (1.13.3) + unicode-display_width (>= 2.4.0, < 3.0) + rubocop-ast (1.29.0) + parser (>= 3.2.1.0) + rubocop-capybara (2.18.0) + rubocop (~> 1.41) + rubocop-factory_bot (2.23.1) + rubocop (~> 1.33) + rubocop-packaging (0.5.2) + rubocop (>= 1.33, < 2.0) + rubocop-performance (1.19.0) rubocop (>= 1.7.0, < 2.0) rubocop-ast (>= 0.4.0) - rubocop-rails (2.13.2) + rubocop-rails (2.21.0) activesupport (>= 4.2.0) rack (>= 1.1) - rubocop (>= 1.7.0, < 2.0) - rubocop-rspec (2.9.0) - rubocop (~> 1.19) - ruby-progressbar (1.11.0) + rubocop (>= 1.33.0, < 2.0) + rubocop-rspec (2.24.0) + rubocop (~> 1.33) + rubocop-capybara (~> 2.17) + rubocop-factory_bot (~> 2.22) + ruby-progressbar (1.13.0) ruby2_keywords (0.0.5) - ruby_parser (3.18.1) + ruby_parser (3.20.3) sexp_processor (~> 4.16) sassc (2.4.0) ffi (~> 1.9) - sexp_processor (4.16.0) - sprockets (4.0.3) + sexp_processor (4.17.0) + sprockets (4.2.1) concurrent-ruby (~> 1.0) - rack (> 1, < 3) + rack (>= 2.2.4, < 4) sprockets-rails (3.4.2) actionpack (>= 5.2) activesupport (>= 5.2) sprockets (>= 3.0.0) - sqlite3 (1.4.2) - strscan (3.0.1) - thor (1.2.1) - timeout (0.2.0) - tzinfo (2.0.4) + sqlite3 (1.6.5-arm64-darwin) + sqlite3 (1.6.5-x86_64-darwin) + sqlite3 (1.6.5-x86_64-linux) + thor (1.2.2) + timeout (0.4.0) + tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (2.1.0) - websocket-driver (0.7.5) + unicode-display_width (2.4.2) + webrick (1.8.1) + websocket-driver (0.7.6) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) xpath (3.2.0) nokogiri (~> 1.8) - zeitwerk (2.5.4) + zeitwerk (2.6.11) PLATFORMS + arm64-darwin-22 x86_64-darwin-21 x86_64-linux diff --git a/spec/dummy/app/models/author.rb b/spec/dummy/app/models/author.rb index 9f26d99..0e622b5 100644 --- a/spec/dummy/app/models/author.rb +++ b/spec/dummy/app/models/author.rb @@ -22,4 +22,10 @@ class Author < ApplicationRecord def to_s "#{name} (#{age})" end + + class << self + def ransackable_attributes(_auth_object = nil) + ["age", "created_at", "email", "id", "name", "updated_at"] + end + end end diff --git a/spec/dummy/app/models/post.rb b/spec/dummy/app/models/post.rb index dc26044..c60016f 100644 --- a/spec/dummy/app/models/post.rb +++ b/spec/dummy/app/models/post.rb @@ -45,4 +45,14 @@ def short_title def upper_title title.upcase end + + class << self + def ransackable_associations(_auth_object = nil) + ["author", "author_profile", "post_tags", "tags"] + end + + def ransackable_attributes(_auth_object = nil) + ["author_id", "category", "created_at", "description", "dt", "id", "position", "published", "title", "updated_at"] + end + end end diff --git a/spec/dummy/app/models/post_tag.rb b/spec/dummy/app/models/post_tag.rb index fd0c184..5c84c8e 100644 --- a/spec/dummy/app/models/post_tag.rb +++ b/spec/dummy/app/models/post_tag.rb @@ -6,4 +6,10 @@ class PostTag < ApplicationRecord validates :post, presence: true validates :tag, presence: true + + class << self + def ransackable_attributes(_auth_object = nil) + ["created_at", "id", "post_id", "tag_id", "updated_at"] + end + end end diff --git a/spec/dummy/app/models/profile.rb b/spec/dummy/app/models/profile.rb index 5f48ff1..282a0f4 100644 --- a/spec/dummy/app/models/profile.rb +++ b/spec/dummy/app/models/profile.rb @@ -6,4 +6,10 @@ class Profile < ApplicationRecord def to_s description end + + class << self + def ransackable_attributes(_auth_object = nil) + ["author_id", "created_at", "description", "id", "updated_at"] + end + end end