Skip to content

Commit

Permalink
Merge pull request #2 from calh/nil_shard_config
Browse files Browse the repository at this point in the history
Check that @config exists.  Fixes thiagopradi#413
  • Loading branch information
calh committed Jul 18, 2019
2 parents fc18f35 + 3e9f50b commit cc72467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/octopus/abstract_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def method_missing(meth, *args, &block)
end

def octopus_shard
@config[:octopus_shard]
@config && @config[:octopus_shard]
end

def initialize(*args)
Expand Down

0 comments on commit cc72467

Please sign in to comment.