Skip to content

Commit

Permalink
Update ActiveAdmin to 1.1.0 to resolve an issue with Ransack
Browse files Browse the repository at this point in the history
We hit this issue when filtering: activeadmin/activeadmin#5333

NoMethodError: undefined method `names_by_decreasing_length' for Ransack::Predicate:Class (Most recent call first)
  • Loading branch information
mitio committed Nov 27, 2022
1 parent 4b96976 commit a8b0bd2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ gem 'bcrypt', '~> 3.1.7'
gem 'rails-i18n'
gem 'rollbar'
gem 'devise', '~> 4.4.0'
gem 'activeadmin', '~> 1.0.0'
gem 'activeadmin', '~> 1.1.0'
gem 'paperclip'
gem 'aws-sdk', '~> 1.5'
gem 'email_validator'
Expand Down
12 changes: 3 additions & 9 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,17 @@ GEM
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activeadmin (1.0.0)
activeadmin (1.1.0)
arbre (>= 1.1.1)
bourbon
coffee-rails
formtastic (~> 3.1)
formtastic_i18n
inherited_resources (~> 1.7)
jquery-rails
jquery-ui-rails
kaminari (>= 0.15, < 2.0)
railties (>= 4.2, < 5.2)
ransack (~> 1.3)
sass-rails
sass (~> 3.1)
sprockets (< 4.1)
activejob (4.2.11.3)
activesupport (= 4.2.11.3)
Expand Down Expand Up @@ -69,8 +67,6 @@ GEM
bcrypt (3.1.18)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
bourbon (7.2.0)
thor (~> 1.0)
builder (3.2.4)
byebug (11.1.3)
capistrano (3.17.1)
Expand Down Expand Up @@ -239,8 +235,6 @@ GEM
rails-dom-testing (~> 1.0)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (6.0.1)
railties (>= 3.2.16)
json (1.8.6)
kaminari (1.2.2)
activesupport (>= 4.1.0)
Expand Down Expand Up @@ -392,7 +386,7 @@ PLATFORMS
ruby

DEPENDENCIES
activeadmin (~> 1.0.0)
activeadmin (~> 1.1.0)
asset_sync
aws-sdk (~> 1.5)
bcrypt (~> 3.1.7)
Expand Down
17 changes: 17 additions & 0 deletions app/assets/stylesheets/active_admin.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// SASS variable overrides must be declared before loading up Active Admin's styles.
//
// To view the variables that Active Admin provides, take a look at
// `app/assets/stylesheets/active_admin/mixins/_variables.scss` in the
// Active Admin source.
//
// For example, to change the sidebar width:
// $sidebar-width: 242px;

// Active Admin's got SASS!
@import "active_admin/mixins";
@import "active_admin/base";

// Overriding any non-variable SASS must be done after the fact.
// For example, to change the default status-tag color:
//
// .status_tag { background: #6090DB; }

0 comments on commit a8b0bd2

Please sign in to comment.