Parameterize Rails version using ENV["RAILS_VERSION"].  Also amend Rakefile to build test app in spec/internal using the environment variable and gemfile_stub
Add attr_accessible through initializer file only if using a version of rails that does not permit StrongParameters.  Also use Rails 4 params.permit if StrongParameters is supported