Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix for Postgresql hstore columns not being recognized #1065

Merged
merged 1 commit into from

2 participants

@reedlaw

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

@bbenezech
Collaborator

Sure.

@bbenezech bbenezech merged commit 5057507 into sferik:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 4, 2012
  1. @reedlaw

    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
View
2  lib/rails_admin/adapters/active_record.rb
@@ -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.