0

What is the way to know if i'm currently inside a namespaced route?

I can't belive there is a method or something defined for this

what i'm doing right now

@admin_namespace = self.class.name.start_with? 'Admin'

Is this the right solution?

Arnold Roa
  • 7,335
  • 5
  • 50
  • 69

0 Answers0