Skip to content

Commit

Permalink
Refactor sys_router.rb to match dev_router.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-mgd committed Dec 16, 2024
1 parent a39a5dd commit 0a9127b
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions apps/dashboard/app/apps/sys_router.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The router class for all system apps.
class SysRouter
attr_reader :name
attr_reader :name, :owner, :caption, :category

#TODO: consider making SysRouter a subclass of
# OodAppkit::Url
Expand All @@ -23,6 +23,9 @@ def self.apps

def initialize(name)
@name = name.to_s
@owner = :sys
@caption = I18n.t('dashboard.system_apps_caption')
@category = ""
end

def token
Expand All @@ -37,18 +40,6 @@ def type
:sys
end

def owner
:sys
end

def caption
I18n.t('dashboard.system_apps_caption')
end

def category
""
end

def url
"/pun/sys/#{name}"
end
Expand Down

0 comments on commit 0a9127b

Please sign in to comment.