picture url bei neuigkeiten ohne locale und theme

This commit is contained in:
Andreas Stephanides
2015-02-10 14:05:20 +01:00
parent 7326b08729
commit 44d35e196f
2 changed files with 2 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ class NeuigkeitenController < ApplicationController
@neuigkeit = Neuigkeit.find(params[:id])
unless @neuigkeit.picture.url.nil?
picture_url=URI(root_url)
picture_url.path=@neuigkeit.picture.url
picture_url.path=@neuigkeit.picture.url(:locale=>nil, :theme=>nil)
end
unless @neuigkeit.published?
redirect_to [@neuigkeit.rubrik,@neuigkeit], notice: 'Neuigkeit muss veröffentlicht sein um sie auf Facebook zu posten.'