Skip to content

Commit cc72467

Browse files
authored
Merge pull request #2 from calh/nil_shard_config
Check that @config exists. Fixes thiagopradi#413
2 parents fc18f35 + 3e9f50b commit cc72467

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/octopus/abstract_adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def method_missing(meth, *args, &block)
1919
end
2020

2121
def octopus_shard
22-
@config[:octopus_shard]
22+
@config && @config[:octopus_shard]
2323
end
2424

2525
def initialize(*args)

0 commit comments

Comments
 (0)