braintree / curator

Model and repository framework
MIT License
350 stars 39 forks source link

Do not require symbols in riak.yml #4

Closed pgr0ss closed 12 years ago

pgr0ss commented 12 years ago

riak-client needs symbols, but we can use with_indifferent_access on the config to make it work.

pgr0ss commented 12 years ago

The riak-client gem specifically requires host and port to be symbols:

VALID_OPTIONS = [:protocol, :nodes, :client_id, :http_backend, :protobuffs_backend] | Node::VALID_OPTIONS

unless (evil = options.keys - VALID_OPTIONS).empty?
  raise ArgumentError, "#{evil.inspect} are not valid options for Client.new"
end