customerio/customerio-ruby — pull request #6 by olery (2012-08-23 07:55:40+00:00)
Title: Features/custom customer id config

Sorry for not working in a feature branch before. This pull request contains code that allows users to configure the custom customer_id using the previously developed configuration object.

Customerio.configure do |config|
config.customer_id do |customer|
"#{Rails.env}_#{customer.id}"
end
end

The old way of configurating using Customerio::Client.id is still supported but will give deprecation warnings.

Tests have been added and readme has been updated.