Skip to content

Commit

Permalink
remove unnecessary overrides of index in SubsiteController subclasses…
Browse files Browse the repository at this point in the history
… (DLC-1167)

- see also DLC-530
- see also DLC-1157
  • Loading branch information
barmintor committed Oct 23, 2024
1 parent d24bb8f commit a770a1c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 36 deletions.
9 changes: 0 additions & 9 deletions app/controllers/durst_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ class DurstController < SubsitesController
prepend_view_path('app/views/portrait')
prepend_view_path('app/views/durst')

def index
super
if !has_search_parameters? && request.format.html?
# we override the view rendered for the subsite home on html requests
params[:action] = 'home'
render 'home'
end
end

def help
end

Expand Down
9 changes: 0 additions & 9 deletions app/controllers/ifp_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@ class IfpController < SubsitesController
prepend_view_path('app/views/signature')
prepend_view_path('app/views/ifp')

def index
super
if !has_search_parameters? && request.format.html?
# we override the view rendered for the subsite home on html requests
params[:action] = 'home'
render 'home'
end
end

def partner
if Ifp::PartnerDataHelper::PARTNER_DATA.has_key?(params[:key].to_sym)
render 'ifp/partner/index'
Expand Down
9 changes: 0 additions & 9 deletions app/controllers/jay_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,4 @@ class JayController < SubsitesController

prepend_view_path('app/views/signature')
prepend_view_path('app/views/jay')

def index
super
if !has_search_parameters? && request.format.html?
# we override the view rendered for the subsite home on html requests
params[:action] = 'home'
render 'home'
end
end
end
9 changes: 0 additions & 9 deletions app/controllers/restricted/universityseminars_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@ class Restricted::UniversityseminarsController < SubsitesController
configure_blacklight_scope_constraints(config)
end

def index
super
if !has_search_parameters? && request.format.html?
# we override the view rendered for the subsite home on html requests
params[:action] = 'home'
render 'home'
end
end

def subsite_layout
'signature'
end
Expand Down

0 comments on commit a770a1c

Please sign in to comment.