lib/zendesk_api/association.rb in zendesk_api-1.13.4 vs lib/zendesk_api/association.rb in zendesk_api-1.14.0
- old
+ new
@@ -148,10 +148,10 @@
end
def build_parent_namespace(parent_class, instance, options, original_options)
path = @options.path
- association_on_parent = parent_class.associations.detect {|a| a[:name] == @options[:name]}
+ association_on_parent = parent_class.associations.detect { |a| a[:name] == @options[:name] }
association_on_parent ||= parent_class.associations.detect do |a|
!a[:inline] && a[:class] == @options[:class]
end
if association_on_parent