Module: Ci::Model

Included in:
Commit, Runner, RunnerProject, Trigger, TriggerRequest, Variable
Defined in:
lib/ci/model.rb

Instance Method Summary collapse

Instance Method Details

#model_nameObject


7
8
9
# File 'lib/ci/model.rb', line 7

def model_name
  @model_name ||= ActiveModel::Name.new(self, nil, self.name.split("::").last)
end

#table_name_prefixObject


3
4
5
# File 'lib/ci/model.rb', line 3

def table_name_prefix
  "ci_"
end