Make compatible with Ruby 2.0
This commit is contained in:
parent
3d885231f2
commit
b07e855235
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,6 @@ class ArticlesController < ApplicationController
|
||||||
private
|
private
|
||||||
|
|
||||||
# @return [Number] Number of articles not taken into account when syncing (having no number)
|
# @return [Number] Number of articles not taken into account when syncing (having no number)
|
||||||
helper_method \
|
|
||||||
def ignored_article_count
|
def ignored_article_count
|
||||||
if action_name == 'sync' || params[:from_action] == 'sync'
|
if action_name == 'sync' || params[:from_action] == 'sync'
|
||||||
@ignored_article_count ||= @supplier.articles.where(order_number: [nil, '']).count
|
@ignored_article_count ||= @supplier.articles.where(order_number: [nil, '']).count
|
||||||
|
@ -238,4 +237,5 @@ class ArticlesController < ApplicationController
|
||||||
0
|
0
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
helper_method :ignored_article_count
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue