Bug #2393

Couple of models broken with audited 3.0.0

Added by Ivan Necas over 9 years ago. Updated over 9 years ago.

Audit Log
Target version:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:


In audited 3.0.0, there is this change:

It adds audited column automatically as attr_protected, which means, that even with whitelist_attributes = false,
the models start being checked.

The solution: set whitelist_attirbutes to true and fix all the missing models with attr_accesible. I know at least
about Oranization, Location, Operatingsystem and ComputeResource that have this issue.

Note: right now, Gemfile locks the audited gem on rc1, which doesn't contain this change. Since the 3.0.0 is already
out, there should be no reason to keep that locked, and we should fix our code base instead.

Related issues

Related to Foreman - Bug #1743: Validation of name parameters always failsClosed2012-07-10

Associated revisions

Revision 9c864cb6 (diff)
Added by Ohad Levy over 9 years ago

fixes #2393 - Couple of models broken with audited 3.0.0

this is not a fix for the mass assignment problem, rather just to solve immedient packaing issue upstream.

a follow up on mass assignment should be done via another commit.


#1 Updated by Ivan Necas over 9 years ago

  • Priority changed from Normal to High

#2 Updated by Dominic Cleal over 9 years ago

  • Category set to Audit Log
  • Target version set to 1.2.0

#3 Updated by Ivan Necas over 9 years ago

This btw. means, that foreman doesn't work properly on Fedora, since there already is audited-3.0.0:

#4 Updated by Ohad Levy over 9 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF