diff --git a/app/decorators/books/decorator.rb b/app/decorators/books/decorator.rb index 98d6c44..a064e25 100644 --- a/app/decorators/books/decorator.rb +++ b/app/decorators/books/decorator.rb @@ -23,7 +23,7 @@ module Adamantium end def authors - self.book_author.split(";").join(" ") + book_author.split(";").join(" ") end def status_colour diff --git a/app/templates/feeds/rss.xml.builder b/app/templates/feeds/rss.xml.builder index d193b0e..106f275 100644 --- a/app/templates/feeds/rss.xml.builder +++ b/app/templates/feeds/rss.xml.builder @@ -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" diff --git a/app/templates/feeds/statuses_rss.xml.builder b/app/templates/feeds/statuses_rss.xml.builder index e17aa2a..cf1c58f 100644 --- a/app/templates/feeds/statuses_rss.xml.builder +++ b/app/templates/feeds/statuses_rss.xml.builder @@ -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" diff --git a/app/templates/layouts/app.xml.builder b/app/templates/layouts/app.xml.builder index 721ca5d..90198e8 100644 --- a/app/templates/layouts/app.xml.builder +++ b/app/templates/layouts/app.xml.builder @@ -1,2 +1,2 @@ xml.instruct! - xml << yield \ No newline at end of file +xml << yield diff --git a/slices/admin/actions/photos/delete.rb b/slices/admin/actions/photos/delete.rb index 48d7876..82ce42a 100644 --- a/slices/admin/actions/photos/delete.rb +++ b/slices/admin/actions/photos/delete.rb @@ -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 diff --git a/slices/admin/views/photos/index.rb b/slices/admin/views/photos/index.rb index 103d40d..bcd5eab 100644 --- a/slices/admin/views/photos/index.rb +++ b/slices/admin/views/photos/index.rb @@ -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