app/helpers/lookbook/preview_helper.rb in lookbook-0.6.1 vs app/helpers/lookbook/preview_helper.rb in lookbook-0.7.0
- old
+ new
@@ -1,7 +1,7 @@
module Lookbook
module PreviewHelper
def lookbook_display(key, fallback = nil)
- params[:lookbook][:display][key.to_sym] || fallback
+ params.dig(:lookbook, :display, key.to_sym) || fallback
end
end
end