foremancommunity-templatesforeman_api
Fixes #22043 - Allow adding invalid orgs to locs (#5104)
And vice-versa. Currently when a taxonomy is invalid (e.g. because somemismatch with hosts and resources), it cannot be assigned to theopposite taxonomy. This is due to the fact that by default,`has_and_belongs_to_many` associations validate the associated object as...
Fixes #21343 - support multiple orgs supported for non-admin users
This adds a full support for taxonomies in API for non-admin users. Itfixes the issue with dirty associations module that only track _ids...
Fixes #12864 - verify host owner taxonomies
fixes #3917 - replace protected_attrs with strong parameters
Filtering of attributes has moved from the protected_attributes gem tostrong parameters in controller concerns, to be in line with currentRails recommendations.
Concerns are shared between UI and both API controllers and list the...
Fixes #15336 - Enables proper deletion of Orgs
Prior to this commit if you had an Org/Location with a host and tried tothe delete the Org. You would end up with an error that looks like
<Org> is used by <Host> (RuntimeError)
Basic error is these 2 areas...
Fixes #7568 - Use attr_accessible for Rails 4 upgrade
Refs #11846 - Specify join_tables for taxonomies
Missed this as part of the previous fix for 11846. As a brief reminder,it's necessary to specify the join table for habtm associations on Rails4, and it doesn't hurt on Rails 3, so we should do it before the upgrade.
Fixes #11650 - show global parameter value inherited from parent taxonomy
Refs #3809 - Stabby lambda syntax for oneliners
I started by spotting log.rb which didn't have a lambda wrapping itsdefault scope, as needed by Rails 4. Since the style guide and mostRails 4 documents used the stabby lambda, I turned on the cop so that we...
Refs #3809 - Remove cops for empty lines
View revisions
Also available in: Atom