From b07e8552351f91f9eb7cc540ca69320d876dfe51 Mon Sep 17 00:00:00 2001 From: wvengen Date: Fri, 5 Jun 2015 15:34:22 +0200 Subject: [PATCH] Make compatible with Ruby 2.0 --- app/controllers/articles_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/articles_controller.rb b/app/controllers/articles_controller.rb index 1f259446..5232d03a 100644 --- a/app/controllers/articles_controller.rb +++ b/app/controllers/articles_controller.rb @@ -230,7 +230,6 @@ class ArticlesController < ApplicationController private # @return [Number] Number of articles not taken into account when syncing (having no number) - helper_method \ def ignored_article_count if action_name == 'sync' || params[:from_action] == 'sync' @ignored_article_count ||= @supplier.articles.where(order_number: [nil, '']).count @@ -238,4 +237,5 @@ class ArticlesController < ApplicationController 0 end end + helper_method :ignored_article_count end