forked from bofh/fetsite
Added the verleihkalender view
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
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)
|
||||
@@ -121,5 +122,11 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user