From d10b5f6ac00b9e24948614596221a31324b9190e Mon Sep 17 00:00:00 2001 From: Tee Parham Date: Thu, 30 May 2013 00:30:20 -0500 Subject: [PATCH] add ruby 1.8 install note [ci skip] fixes #310 --- README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 908bf304..a5386778 100644 --- a/README.md +++ b/README.md @@ -13,13 +13,13 @@ content. In short, **serializers replace hash-driven development with object-oriented development.** -# Installing Serializers +# Installing The easiest way to install `ActiveModel::Serializers` is to add it to your `Gemfile`: ```ruby -gem "active_model_serializers", "~> 0.8.0" +gem "active_model_serializers" ``` Then, install it on the command line: @@ -28,6 +28,16 @@ Then, install it on the command line: $ bundle install ``` +#### Ruby 1.8 is no longer supported! + +If you must use a ruby 1.8 version (MRI 1.8.7, REE, Rubinius 1.8, or JRuby 1.8), you need to use version 0.8.x. +Versions after 0.9.0 do not support ruby 1.8. To specify version 0.8, include this in your Gemfile: + +```ruby +gem "active_model_serializers", "~> 0.8.0" +``` + + # Creating a Serializer The easiest way to create a new serializer is to generate a new resource, which