foreman_docker / app / models / foreman_docker / taxonomy_extensions.rb @ 5d7016fd
1 |
module ForemanDocker |
---|---|
2 |
module TaxonomyExtensions |
3 |
extend ActiveSupport::Concern |
4 |
|
5 |
included do
|
6 |
if SETTINGS[:version].to_s.to_f <= 1.7 |
7 |
def self.enabled_taxonomies |
8 |
%w(locations organizations).select { |taxonomy| SETTINGS["#{taxonomy}_enabled".to_sym] } |
9 |
end
|
10 |
end
|
11 |
end
|
12 |
end
|
13 |
end
|
14 |
# To be removed after 1.7 compatibility is no longer required
|