# File lib/inherited_resources/base_helpers.rb, line 135 def association_chain @association_chain ||= begin symbol_chain = if resources_configuration[:self][:singleton] symbols_for_association_chain.reverse else symbols_for_association_chain end symbol_chain.inject([begin_of_association_chain]) do |chain, symbol| chain << evaluate_parent(symbol, resources_configuration[symbol], chain.last) end.compact.freeze end end