add to_s to model_name for different Ruby compatability
upgrade ActiveRecord version to 3.2