Skip to content

Commit

Permalink
Force ransack gem version to fix undefined method 'polymorphic?' (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitor Lopez Beltran authored Aug 21, 2019
1 parent 2e26a80 commit 3d63a3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ gem 'whenever'
gem 'figaro', '>= 1.1.1'
gem 'openssl'

# Force gem version to fix:
# undefined method `polymorphic?' for ActiveRecord::Reflection::PolymorphicReflection
# See: https://github.com/activerecord-hackery/ransack/issues/1039
gem 'ransack', '2.1.1'

gem 'decidim', DECIDIM_VERSION
gem 'decidim-verifications-sitges_census', git: 'https://github.com/CodiTramuntana/decidim-verifications-sitges_census.git', tag: 'v0.0.2'

Expand Down
6 changes: 2 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -547,8 +547,6 @@ GEM
pg_search (2.3.0)
activerecord (>= 4.2)
activesupport (>= 4.2)
polyamorous (2.3.0)
activerecord (>= 5.0)
powerpack (0.1.2)
premailer (1.11.1)
addressable
Expand Down Expand Up @@ -598,12 +596,11 @@ GEM
thor (>= 0.19.0, < 2.0)
rainbow (3.0.0)
rake (12.3.3)
ransack (2.3.0)
ransack (2.1.1)
actionpack (>= 5.0)
activerecord (>= 5.0)
activesupport (>= 5.0)
i18n
polyamorous (= 2.3.0)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
ffi (~> 1.0)
Expand Down Expand Up @@ -779,6 +776,7 @@ DEPENDENCIES
listen (~> 3.1.0)
openssl
puma (~> 3.0)
ransack (= 2.1.1)
spring
spring-watcher-listen (~> 2.0.0)
uglifier (>= 1.3.0)
Expand Down

0 comments on commit 3d63a3a

Please sign in to comment.