Fix for Postgresql hstore columns not being recognized #1065

Merged
merged 1 commit into from Apr 7, 2012
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
@@ -4,7 +4,7 @@
module RailsAdmin
module Adapters
module ActiveRecord
- DISABLED_COLUMN_TYPES = [:tsvector, :blob, :binary, :spatial]
+ DISABLED_COLUMN_TYPES = [:tsvector, :blob, :binary, :spatial, :hstore]
AR_ADAPTER = ::ActiveRecord::Base.configurations[Rails.env]['adapter']
LIKE_OPERATOR = AR_ADAPTER == "postgresql" ? 'ILIKE' : 'LIKE'