Module: ForemanOpenscap::BookmarkControllerValidatorExtensions::ClassMethods

Defined in:
app/validators/concerns/foreman_openscap/bookmark_controller_validator_extensions.rb

Instance Method Summary collapse

Instance Method Details

#valid_controllers_listObject



4
5
6
7
8
9
10
# File 'app/validators/concerns/foreman_openscap/bookmark_controller_validator_extensions.rb', line 4

def valid_controllers_list
  super + ActiveRecord::Base.connection
                            .tables
                            .map(&:to_s)
                            .select { |table| table.start_with? 'foreman_openscap_' }
                            .map { |table| table.sub('foreman_openscap_', '') }
end