Commit 0ed08366 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Move EE specific delegation to EE::User

parent 14af431a
......@@ -15,6 +15,9 @@ module EE
# column directly.
validate :auditor_requires_license_add_on, if: :auditor
validate :cannot_be_admin_and_auditor
delegate :shared_runners_minutes_limit, :shared_runners_minutes_limit=,
to: :namespace
end
module ClassMethods
......
......@@ -190,10 +190,6 @@ class User < ActiveRecord::Base
delegate :path, to: :namespace, allow_nil: true, prefix: true
# EE-only
delegate :shared_runners_minutes_limit, :shared_runners_minutes_limit=,
to: :namespace
accepts_nested_attributes_for :namespace
state_machine :state, initial: :active do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment