From 64bfd9d71a4017e0b5336a2c1565926f4b8beedd Mon Sep 17 00:00:00 2001
From: Kamil Trzcinski <ayufan@ayufan.eu>
Date: Thu, 10 Dec 2015 17:44:06 +0100
Subject: Remove ci_ prefix from all ci related things

---
 lib/ci/api/runners.rb | 2 +-
 lib/ci/charts.rb      | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

(limited to 'lib/ci')

diff --git a/lib/ci/api/runners.rb b/lib/ci/api/runners.rb
index 1e738a73157..8704917b9e4 100644
--- a/lib/ci/api/runners.rb
+++ b/lib/ci/api/runners.rb
@@ -38,7 +38,7 @@ module Ci
               )
             elsif project = Project.find_by(runners_token: params[:token])
               # Create a specific runner for project.
-              project.ci_runners.create(
+              project.runners.create(
                 description: params[:description],
                 tag_list: params[:tag_list]
               )
diff --git a/lib/ci/charts.rb b/lib/ci/charts.rb
index 912ccff5f98..d53bdcbd0f2 100644
--- a/lib/ci/charts.rb
+++ b/lib/ci/charts.rb
@@ -16,10 +16,10 @@ module Ci
 
       def push(from, to, format)
         @labels << from.strftime(format)
-        @total << project.ci_builds.
+        @total << project.builds.
           where("? > #{Ci::Build.table_name}.created_at AND #{Ci::Build.table_name}.created_at > ?", to, from).
           count(:all)
-        @success << project.ci_builds.
+        @success << project.builds.
           where("? > #{Ci::Build.table_name}.created_at AND #{Ci::Build.table_name}.created_at > ?", to, from).
           success.count(:all)
       end
-- 
cgit v1.2.1