lib/sequel_rails/storage.rb in sequel-rails-0.9.11 vs lib/sequel_rails/storage.rb in sequel-rails-0.9.12
- old
+ new
@@ -41,10 +41,10 @@
def self.close_connections_environment(config_or_env)
adapter_for(config_or_env).close_connections
end
def self.adapter_for(config_or_env)
- config = if config_or_env.kind_of? Hash
+ config = if config_or_env.is_a? Hash
config_or_env
else
::SequelRails.configuration.environments[config_or_env.to_s]
end
lookup_class(config['adapter']).new config