app/helpers/lookbook/application_helper.rb in lookbook-1.3.4 vs app/helpers/lookbook/application_helper.rb in lookbook-1.4.0
- old
+ new
@@ -16,10 +16,10 @@
def feature_enabled?(name)
Lookbook::Features.enabled?(name)
end
def landing_path
- landing = Lookbook.pages.find(&:landing) || Lookbook.pages.first
+ landing = Lookbook.pages.find(&:landing?) || Lookbook.pages.first
if landing.present?
lookbook_page_path landing.lookup_path
else
lookbook_home_path
end