Module: StrictLoading::AbstractReflection

Defined in:
lib/strict-loading/abstract_reflection.rb

Instance Method Summary collapse

Instance Method Details

#strict_loading_violation_message(owner) ⇒ Object



3
4
5
6
7
# File 'lib/strict-loading/abstract_reflection.rb', line 3

def strict_loading_violation_message(owner)
  message = "`#{owner}` is marked for strict_loading."
  message << " The #{polymorphic? ? "polymorphic association" : "#{klass} association"}"
  message << " named `:#{name}` cannot be lazily loaded."
end