Skip to content

Commit

Permalink
Merge pull request #15 from crashtech/fix-schema-cache
Browse files Browse the repository at this point in the history
Avoid error with nil data sources
  • Loading branch information
Carlos authored Sep 1, 2018
2 parents c61eaa4 + 903390d commit 7e5bc27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/torque/postgresql/schema_cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def find_model(max_name, table_name, scope = Object)

# Generates the cache key for inheitance information
def inheritance_cache_key
@data_sources.keys.sort.join(',')
@data_sources.keys.compact.sort.join(',')
end

# Reload information about tables inheritance and dependencies, uses a
Expand Down
2 changes: 1 addition & 1 deletion lib/torque/postgresql/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Torque
module PostgreSQL
VERSION = '0.2.4'
VERSION = '0.2.5'
end
end

0 comments on commit 7e5bc27

Please sign in to comment.