Skip to content

Commit

Permalink
Merge ac906e7 into 0fdb245
Browse files Browse the repository at this point in the history
  • Loading branch information
swalkinshaw committed Apr 10, 2014
2 parents 0fdb245 + ac906e7 commit aa5b655
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/rails_admin/adapters/active_record.rb
Expand Up @@ -5,7 +5,6 @@ module RailsAdmin
module Adapters
module ActiveRecord
DISABLED_COLUMN_TYPES = [:tsvector, :blob, :binary, :spatial, :hstore, :geometry]
DISABLED_COLUMN_MATCHERS = [/_array$/]

def new(params = {})
AbstractObject.new(model.new(params))
Expand Down Expand Up @@ -57,7 +56,7 @@ def properties
columns = model.columns.reject do |c|
c.type.blank? ||
DISABLED_COLUMN_TYPES.include?(c.type.to_sym) ||
DISABLED_COLUMN_MATCHERS.any? { |matcher| matcher.match(c.type.to_s) }
c.try(:array)
end
columns.collect do |property|
Property.new(property, model)
Expand Down

0 comments on commit aa5b655

Please sign in to comment.