summaryrefslogtreecommitdiff
path: root/lib/static_model.rb
diff options
context:
space:
mode:
authorJacopo <beschi.jacopo@gmail.com>2018-08-27 14:35:31 +0200
committerJacopo <beschi.jacopo@gmail.com>2018-08-29 16:56:34 +0200
commitc6bddeacf4775b79edc9896f30da3c1f4136d4d1 (patch)
tree453164aca2281f6899f313f408b0fb37b98c3cdd /lib/static_model.rb
parent8af40870e2208612a5af34e19f231032745a7f90 (diff)
downloadgitlab-ce-c6bddeacf4775b79edc9896f30da3c1f4136d4d1.tar.gz
Updates code using class_methods over module ClassMethods
Diffstat (limited to 'lib/static_model.rb')
-rw-r--r--lib/static_model.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/static_model.rb b/lib/static_model.rb
index 60e2dd82e4e..44673c2b5f6 100644
--- a/lib/static_model.rb
+++ b/lib/static_model.rb
@@ -2,7 +2,7 @@
module StaticModel
extend ActiveSupport::Concern
- module ClassMethods
+ class_methods do
# Used by ActiveRecord's polymorphic association to set object_id
def primary_key
'id'