Skip to content

Instantly share code, notes, and snippets.

@glytch
glytch / gist:9628863
Created March 18, 2014 20:29
postgis/posgresql composite primary key patch
module CompositePrimaryKeys
class CompositeKeys
def to_sym
join('_').to_sym
end
end
module ActiveRecord
module Persistence
def update_record(attribute_names = @attributes.keys)