Added the verleihkalender view

This commit is contained in:
Pet
2018-05-15 21:21:09 +02:00
parent df3b771048
commit 2f43d5966f
2 changed files with 2 additions and 13 deletions

View File

@@ -1,5 +1,4 @@
class HomeController < ApplicationController
after_action :allow_iframe, only: :verleihkalender
def index
@beispiele = Beispiel.last([Beispiel.count, 3].min)
@neuigkeiten = Neuigkeit.accessible_by(current_ability, :show).limit(10)
@@ -122,11 +121,4 @@ class HomeController < ApplicationController
File.open("config/contact_topic.yml",'w'){|f| f.write(t.to_yaml)}
redirect_to admin_home_index_path
end
private
def allow_iframe
response.headers.except! 'X-Frame-Options'
end
end