completed SMS gateway project

This commit is contained in:
Min Zeya Phyo
2025-10-22 17:22:17 +08:00
commit c883fa7128
190 changed files with 16294 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
module AdminHelper
def current_admin
@current_admin ||= AdminUser.find_by(id: session[:admin_id]) if session[:admin_id]
end
def logged_in?
current_admin.present?
end
end

View File

@@ -0,0 +1,12 @@
module ApplicationHelper
include Pagy::Frontend
# Admin authentication helpers
def current_admin
@current_admin ||= AdminUser.find_by(id: session[:admin_id]) if session[:admin_id]
end
def logged_in?
current_admin.present?
end
end