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?
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?