Straasio

Short description and motivation.

Usage

How to use my plugin.

Installation

Add this line to your application’s Gemfile:

ruby gem 'sraas'

And then execute: bash $ bundle

In rails root run instalation script bash $ rake sraas:install

Add your api key in config/initializers/sraas.rb ruby # API key config.api_key = <API KEY>

Run migrations bash $ rake db:migrate

Using

Add to models/user.rb next line ruby class User < ApplicationRecord has_sraas end This will create polymorphic association sraas_consumer which provides interface for using SRAAS API

Tests

To run tests use bash $ rake spec

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.

cd test/dummy; bin/rails generate model Hickwall sraas_consumer_id:string

Deploy updated gem:

gem install pkg/sraas-0.2.2.gem