summaryrefslogtreecommitdiff
path: root/app/models/clusters/instance.rb
blob: 8c9d9ab9ab1b95d3ae53f1a57c3e3834a28500af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module Clusters
  class Instance
    def clusters
      Clusters::Cluster.instance_type
    end

    def feature_available?(feature)
      ::Feature.enabled?(feature, default_enabled: true)
    end

    def flipper_id
      self.class.to_s
    end
  end
end