app/helpers/decidim/budgets/projects_helper.rb in decidim-budgets-0.6.8 vs app/helpers/decidim/budgets/projects_helper.rb in decidim-budgets-0.7.0

- old
+ new

@@ -15,12 +15,10 @@ def current_order_budget_percent current_order&.budget_percent.to_f.floor end # Return true if the current order is checked out - def current_order_checked_out? - current_order&.checked_out? - end + delegate :checked_out?, to: :current_order, prefix: true, allow_nil: true # Return true if the user can continue to the checkout process def current_order_can_be_checked_out? current_order&.can_checkout? end