Module: Fir::AdminMiddleware

Included in:
AdminAuth, AdminInterface
Defined in:
lib/fir/admin.rb

Instance Method Summary collapse

Instance Method Details

#admin_path?(env) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/fir/admin.rb', line 3

def admin_path?(env)
	!!env['PATH_INFO'].chomp('/').match(/^\/?-admin/)
end