Skip to content

Commit

Permalink
Fetch the adapter from the config
Browse files Browse the repository at this point in the history
`nil` is not a valid option for `:adapter`
  • Loading branch information
jcoyne committed Jan 18, 2016
1 parent b38f916 commit 7202c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/blacklight.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def self.repository_class
when /::/
connection_config[:adapter].constantize
else
Blacklight.const_get("#{connection_config[:adapter]}/Repository".classify)
Blacklight.const_get("#{connection_config.fetch(:adapter)}/Repository".classify)
end
end

Expand Down

0 comments on commit 7202c64

Please sign in to comment.