nofxx/postgis_adapter — Issue #31: undefined method `attribute_condition'
Author: joeytheman
Created: 2012-02-20 18:52:33+00:00
State: open

I am getting the following after adding the `postgis_adapter` gem to my Rails 3.2.1 app on `Ruby 1.9.3-p125` when trying to access a `has_many` relationship with conditions defined through a hash.

undefined method `attribute_condition' for #

Works

has_many :friends, through: :friendships, source: friend, conditions: "friendships.status = 'A'"

Doesn't work with postgis_adapter gem

has_many :friends, :through => :friendships, :source => :friend, :conditions => {:friendships => { :status => 'A' }}