Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updates for administarte v0.17 #71

Open
jcsrb opened this issue Apr 20, 2022 · 2 comments
Open

updates for administarte v0.17 #71

jcsrb opened this issue Apr 20, 2022 · 2 comments

Comments

@jcsrb
Copy link

jcsrb commented Apr 20, 2022

in order to be compatible with Administrate v0.17 i overwrote index_resources

def index_resources
      Administrate::Search.new(index_scoped_resource, dashboard, search_term).run
 end

it changed how
Screenshot 2022-04-20 at 17 16 30
as seen here https://github.com/thoughtbot/administrate/compare/v0.16.0...v0.17.0?diff=unified

they changed what the search class expects
thoughtbot/administrate@fd83fbb

@SleeplessByte
Copy link
Member

Wanna do the PR?

@synth
Copy link

synth commented Sep 5, 2023

Woops, just hit this. Luckily the workaround is fairly easy for now. Just need to add

module Admin
  class ApplicationController < Administrate::ApplicationController

    def index_resources
      Administrate::Search.new(index_scoped_resource, dashboard, search_term).run
    end

  end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants