Standard fix

This commit is contained in:
2023-07-02 09:57:55 +10:00
parent e2ee90ce38
commit f30823c566
6 changed files with 6 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ module Adamantium
end
def authors
self.book_author.split(";").join(" ")
book_author.split(";").join(" ")
end
def status_colour

View File

@@ -1,4 +1,4 @@
xml.instruct! "xml-stylesheet", {:href=>"/assets/style.xslt", :type=>"text/xsl"}
xml.instruct! "xml-stylesheet", {href: "/assets/style.xslt", type: "text/xsl"}
xml.channel do |channel|
channel.title "Daniel Nitsikopoulos"

View File

@@ -1,4 +1,4 @@
xml.instruct! "xml-stylesheet", {:href=>"/assets/style.xslt", :type=>"text/xsl"}
xml.instruct! "xml-stylesheet", {href: "/assets/style.xslt", type: "text/xsl"}
xml.channel do |channel|
channel.title "Daniel Nitsikopoulos"

View File

@@ -1,2 +1,2 @@
xml.instruct!
xml << yield
xml << yield

View File

@@ -5,7 +5,7 @@ module Admin
include Deps["commands.media.delete"]
def handle(req, res)
delete.call(path: File.join(Hanami.app.root, "public", "media",req.params[:year], req.params[:path]))
delete.call(path: File.join(Hanami.app.root, "public", "media", req.params[:year], req.params[:path]))
end
end
end

View File

@@ -15,7 +15,7 @@ module Admin
Dir["#{MEDIA_DIR}*"]
.reverse
.reject do |path|
IGNORE_PATHS.any?{|ip| path.match(ip) }
IGNORE_PATHS.any? { |ip| path.match(ip) }
end
end
end