Class: EmptyEye::Associations::Builder::ShardHasOne

Inherits:
ActiveRecord::Associations::Builder::HasOne
  • Object
show all
Defined in:
lib/empty_eye/associations/builder/shard_has_one.rb

Instance Method Summary collapse

Instance Method Details

#buildObject

special association builder for shard very verbose but will be easier to update later better than monkey patching this builder allows the other special shard association-ish classes to be created the ground floor …



11
12
13
14
15
# File 'lib/empty_eye/associations/builder/shard_has_one.rb', line 11

def build
  reflection = super
  configure_dependency unless options[:through]
  reflection
end