Hello.
Checking out your gem and it looks pretty good.
However I was wondering how would you go about comparing associations. Here is an example.
class Client
has_many :addresses, :as => :addressable, :dependent => :destroy
has_many :orders
validates_associated :addresses
validates_associated :orders
end
class Address
belongs_to :addressable, :polymorphic => true
end
class Discount
belongs_to :client
end
Cient might have multiple addresses (shipping, billing, work, etc.), also if we introduce Warehouse model, it will need Addresses to - hence polymorphic association. So let's say I want to update a Client record. And the only thing that changed wasn't the actual client record, but the associated address ( let's say the zip code was wrong and I want to change that). How would I go about comparing for that?