config file is not configurable #8

Closed
miwest929 opened this Issue Mar 4, 2013 · 2 comments

Projects

None yet

2 participants

@miwest929

It would be useful if there was an alternative way to config Cequel::Migrations. Perhaps pass in a config hash that individual applications could construct. I need such functionality because for ceqeul gem instead of cequel.yml I use cassandra.yml; it would be much better if configuration source was same for Cequel & Cequel::Migrations.

Look at below code appears there is no such alternative.

def self.cequel_env_conf
      YAML::load(File.open(File.join(::Rails.root,"config", "cequel.yml")))[::Rails.env]
end
@miwest929

I could make a PR that supports this unless someone strongly objects.

@cyphactor

Please by all means make a pull request.

@miwest929 miwest929 closed this Jul 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment