Skip to content
Permalink
Browse files Browse the repository at this point in the history
x ApplicationHelper.get_sql_like() -> o SqlHelper.get_sql_like()
Signed-off-by: MORITA Shintaro <shin@sysphonic.com>
  • Loading branch information
MORITA Shintaro committed Jul 4, 2015
1 parent 88d64da commit a61dc72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/controllers/equipment_controller.rb
Expand Up @@ -143,7 +143,7 @@ def list
if @group_id == '0'
con << "((groups like '%|0|%') or (groups is null))"
else
con << ApplicationHelper.get_sql_like([:groups], "|#{@group_id}|")
con << SqlHelper.get_sql_like([:groups], "|#{@group_id}|")
end
end

Expand Down Expand Up @@ -219,11 +219,11 @@ def schedule_all
case display_type
when 'group'
if @login_user.get_groups_a(true).include?(display_id)
con = ApplicationHelper.get_sql_like([:groups], "|#{display_id}|")
con = SqlHelper.get_sql_like([:groups], "|#{display_id}|")
end
when 'team'
if @login_user.get_teams_a.include?(display_id)
con = ApplicationHelper.get_sql_like([:teams], "|#{display_id}|")
con = SqlHelper.get_sql_like([:teams], "|#{display_id}|")
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/groups_controller.rb
Expand Up @@ -263,7 +263,7 @@ def get_users
if @group_id == '0'
con << "((groups like '%|0|%') or (groups is null))"
else
con << ApplicationHelper.get_sql_like([:groups], "|#{@group_id}|")
con << SqlHelper.get_sql_like([:groups], "|#{@group_id}|")
end
end

Expand Down

0 comments on commit a61dc72

Please sign in to comment.