Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix for Postgresql hstore columns not being recognized #1065

Merged
merged 1 commit into from

2 participants

Reed G. Law Benoit Bénézech
Reed G. Law

Fixes what #899 had fixed before AR recognized :hstore columns in Postgresql.

Benoit Bénézech
Collaborator

Sure.

Benoit Bénézech bbenezech merged commit 5057507 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 4, 2012
  1. Reed G. Law

    No support for hstore yet.

    reedlaw authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/rails_admin/adapters/active_record.rb
2  lib/rails_admin/adapters/active_record.rb
View
@@ -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'
Something went wrong with that request. Please try again.