decisiv-sharded_database 0.1.4 → 0.1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -53,10 +53,10 @@ module ShardedDatabase
53
53
 
54
54
  @original_connection = klass.connection
55
55
  klass.metaclass.delegate :connection, :to => self.source_class
56
- value = klass.find(send(reflection.primary_key_name))
56
+ @#{method} ||= klass.find(send(reflection.primary_key_name))
57
57
  klass.metaclass.delegate :connection, :to => @original_connection
58
58
 
59
- value
59
+ @#{method}
60
60
  end
61
61
  end
62
62
  }, __FILE__, __LINE__
@@ -4,6 +4,6 @@ require 'sharded_database/core_extensions'
4
4
 
5
5
  module ShardedDatabase
6
6
 
7
- VERSION = '0.1.4'
7
+ VERSION = '0.1.4.1'
8
8
 
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decisiv-sharded_database
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brennan Dunn