From 2f43d5966f3a7662615a0ffeb3cb79ff729d8899 Mon Sep 17 00:00:00 2001 From: Pet Date: Tue, 15 May 2018 21:21:09 +0200 Subject: [PATCH] Added the verleihkalender view --- app/controllers/home_controller.rb | 8 -------- app/views/home/verleihkalender.html.erb | 7 ++----- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 3475e8c..d6be03c 100755 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -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 diff --git a/app/views/home/verleihkalender.html.erb b/app/views/home/verleihkalender.html.erb index b1de604..14f59dc 100644 --- a/app/views/home/verleihkalender.html.erb +++ b/app/views/home/verleihkalender.html.erb @@ -10,10 +10,7 @@ -