README.md in devise-ios-rails-1.0.1 vs README.md in devise-ios-rails-1.0.2

- old
+ new

@@ -25,10 +25,18 @@ - run bundler to install the gem `bundle install` - setup devise like you would normally do ([check the installation guide][devise]) - in your routes change `devise_for ModelName` with `devise_ios_rails_for ModelName` (ModelName is usually User) - authentication is handled by user token which is generated for each user during the registration process. -To make it work you need to run migration that adds `authentication_token` column to your Devise model. +Add the following line to your ModelName model +```ruby +# app/models/model_name.rb +class ModelName < ActiveRecord::Base + acts_as_token_authenticatable + ... +end +``` +Add a migration for adding `authentication_token` column to your Devise model. If your ModelName is `User` then the migration should look like this: ```ruby class AddUniqueTokenToUser < ActiveRecord::Migration def change add_column :users, :authentication_token, :string