Standard fixes
This commit is contained in:
@@ -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)
|
||||
|
@@ -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) }
|
||||
|
Reference in New Issue
Block a user