lib/sequel_rails/configuration.rb in sequel-rails-0.9.17 vs lib/sequel_rails/configuration.rb in sequel-rails-1.0.0

- old
+ new

@@ -35,11 +35,11 @@ end def environments @environments ||= raw.reduce( # default config - use just the environment variable - Hash.new normalize_repository_config({}) + Hash.new(normalize_repository_config({})) ) do |normalized, environment| name = environment.first config = environment.last normalized[name] = normalize_repository_config(config) normalized @@ -47,12 +47,12 @@ end def connect(environment) normalized_config = environment_for environment - unless (normalized_config.keys & %w(adapter url)).any? - fail "Database not configured.\n" \ + unless (normalized_config.keys & %w[adapter url]).any? + raise "Database not configured.\n" \ 'Please create config/database.yml or set DATABASE_URL in environment.' end if normalized_config['url'] ::Sequel.connect normalized_config['url'], SequelRails.deep_symbolize_keys(normalized_config) @@ -62,10 +62,10 @@ end private def default_schema_dump - !%w(test production).include? Rails.env + !%w[test production].include? Rails.env end def normalize_repository_config(hash) config = DbConfig.new hash, :root => root