Project

General

Profile

Actions

Bug #13755

closed

Allow iterating over ActiveRecord CollectionProxy in safe mode rendering

Added by Marek Hulán about 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Templates
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When we use something like

<% @host.interfaces.each %>

I see an error like this

There was an error rendering the Preseed default finish template: The snippet 'preseed_networking_setup' threw an error: undefined method 'each' for Safemode::Jail (ActiveRecord::Associations::CollectionProxy)

Related issues 1 (0 open1 closed)

Related to Foreman - Bug #13168: Rendering of kickstart_networking_setup fails: undefined method 'each' for Safemode::Jail (ActiveRecord::AssociationRelation)ClosedDominic Cleal01/13/2016Actions
Actions #1

Updated by Marek Hulán about 8 years ago

  • Related to Bug #13168: Rendering of kickstart_networking_setup fails: undefined method 'each' for Safemode::Jail (ActiveRecord::AssociationRelation) added
Actions #2

Updated by The Foreman Bot about 8 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3198 added
Actions #3

Updated by Anonymous about 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF