app/controllers/lookbook/application_controller.rb in lookbook-1.5.0 vs app/controllers/lookbook/application_controller.rb in lookbook-1.5.1
- old
+ new
@@ -15,9 +15,10 @@
"lookbook"
end
def index
landing = Lookbook.pages.find(&:landing?) || Lookbook.pages.first
+
if landing.present?
redirect_to lookbook_page_path(landing.path)
else
render "lookbook/index"
end