Standard fixes

This commit is contained in:
2024-01-08 09:14:02 +11:00
parent 320c460d2d
commit 941cbca8e8
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ module Adamantium
module Views
class Context < Hanami::View::Context
include Hanami::View::ContextHelpers::ContentHelpers
include Deps["repos.page_repo"]
def initialize(**options)

View File

@@ -14,7 +14,7 @@ module Admin
private_expose :available_paths do
Dir["#{MEDIA_DIR}*"]
.map { |path| [path, path.split("-").reverse.join("")] }
.sort { |a,b| a[1] <=> b[1] }
.sort_by { |a| a[1] }
.reverse
.reject do |path|
IGNORE_PATHS.any? { |ip| path[0].match(ip) }