Hi foreman devs - particularly plugin authors this time,
As part of the Rails 4 upgrade, we are moving to attr_accessible to
enforce mass assignment protection on Rails models. We want to merge
this a bit before than Rails 4 itself.
If your plugin extends Foreman models and uses mass assignment on the
attributes it extends, you will need to whitelist these in your plugin.
I made a few pull requests to projects where I saw some failures:
Katello - Refs #12468 - Add attr_acccessible to organization label by dLobatog · Pull Request #5615 · Katello/katello · GitHub
Discovery - Fixes #12548 - Allow discovery_rule to be mass assigned by dLobatog · Pull Request #233 · theforeman/foreman_discovery · GitHub
Salt - Fixes #12549 - Allow salt-proxy and salt_environment to be mass-assigned by dLobatog · Pull Request #55 · theforeman/foreman_salt · GitHub
As a secondary reminder - Tom Caspy gave yesterday an overview of
changes on Rails 4 that you probably want to be aware if you're
developing a plugin - https://youtu.be/RCqwTtIXRSw?t=28m32s
Thanks!
···
-- Daniel Lobato GarciaGPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
Keybase: elobato (Daniel Lobato Garcia) | Keybase