Katello/katello — pull request #1555 by ehelms (2013-02-11 19:44:11+00:00)
Title: Rails 32 to 30 Bridge

This pull request encompasses changes that allow Katello to run on Rails 3.0 and 3.2. The intent is to support both stacks for a time being in order to stabilize our builds and give developers time to transition fully into Rails 3.2. This is the minimal amount of changes and new gems (e.g. no asset pipelining, or mass sanitization yet).

Rails tested versions:
3.0.10
3.2.11

Included with these changes are a number of locations in the code that serve as a bridge between 3.2 and 3.0. These bridges assess either the rails version or the existence of an entity to decide how to proceed. This is needed in order to handle completely deprecated functionality or entities that entirely changed (such as Routes). Extra notes:

* This does not tackle all deprecated functionality, only the fully deprecated
* In Rails 3.2 all params presented to a controller are strings (no typecasting), spec tests required massive updates to account for this
* Objects that extend ActiveRecord models initialize method now require 2 parameters
* Moves all tupane layout declarations to the views responsibility
* Adds Gemfile32 that sets the rails version to 3.2.11 for testing on Travis a second matrix on Travis until we completely switch to 3.2
* CLI system-tests were tested and passed