ManageIQ/manageiq

View on GitHub
lib/extensions/ar_column_names.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module ActiveRecord
  class Base
    def self.column_names_symbols
      @column_names_symbols ||= column_names.collect(&:to_sym)
    end
  end
end