Browse Source

FIX code bug

tags/v1.0.0
Jasder 5 years ago
parent
commit
e7a0bc7e0f
3 changed files with 4 additions and 5 deletions
  1. +2
    -3
      app/models/ci/cloud_account.rb
  2. +1
    -1
      app/models/ci/language.rb
  3. +1
    -1
      app/models/ci/local_base.rb

+ 2
- 3
app/models/ci/cloud_account.rb View File

@@ -1,5 +1,4 @@
class Ci::CloudAccount < Local::Base

class Ci::CloudAccount < Ci::LocalBase
belongs_to :project
belongs_to :user

@@ -12,7 +11,7 @@ class Ci::CloudAccount < Local::Base
end

def drone_url
["http://", drone_host].join
["http://", self.drone_host].join
end

def visible_secret


+ 1
- 1
app/models/ci/language.rb View File

@@ -1,4 +1,4 @@
class Ci::Language < Local::Base
class Ci::Language < Ci::LocalBase
# before_save :encode_content

belongs_to :cover, class_name: "Attachment", foreign_key: :cover_id, optional: true


+ 1
- 1
app/models/ci/local_base.rb View File

@@ -1,4 +1,4 @@
class Local::Base < ApplicationRecord
class Ci::LocalBase < ApplicationRecord
def self.table_name_prefix
"ci_"
end


Loading…
Cancel
Save