Skip to content
New issue

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

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

Already on GitHub? # to your account

rails_admin_controller? method removed #2268

Closed
sbull opened this issue Apr 23, 2015 · 1 comment
Closed

rails_admin_controller? method removed #2268

sbull opened this issue Apr 23, 2015 · 1 comment

Comments

@sbull
Copy link
Contributor

sbull commented Apr 23, 2015

The fix for #2023 apparently removed the rails_admin_controller? method. I didn't see an explanation for this. It was added back in #351.

Was there a reason for this? It broke my upgrade from 0.6.6 to 0.6.7.

FWIW, I've had this method in my ApplicationController, which I'll implement differently now:

  def is_rails_admin_controller?
    respond_to?(:rails_admin_controller?, true) && rails_admin_controller?
  end
@YoranBrondsema
Copy link

I'm having the same problem. I fixed it with a kind of dirty implementation but it works:

def is_rails_admin_controller?
  (self.class.to_s =~ /RailsAdmin::/) == 0
end

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

No branches or pull requests

2 participants