<commit_before># referrals [under development - not yet production ready]

[![Build Status](https://travis-ci.org/psagan/referrals.svg?branch=master)](https://travis-ci.org/psagan/referrals)
[![Code Climate](https://codeclimate.com/github/psagan/referrals/badges/gpa.svg)](https://codeclimate.com/github/psagan/referrals)
[![Gem Version](https://badge.fury.io/rb/referrals.svg)](https://badge.fury.io/rb/referrals)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Referrals engine dedicated for Ruby on Rails based applications

# Referrals
Short description and motivation.

## Usage
How to use my plugin.

## Installation
Add this line to your application's Gemfile:

```ruby
gem 'referrals'
```

And then execute:
```bash
$ bundle
```

After that run:
```bash
bin/rails referrals:install:migrations
```
It will copy engines migrations to your project.
Now migrate:
```bash
# Rails 4
bin/rake db:migrate

# Rails 5
bin/rails db:migrate
```


## Integration with Rails
**Controller helper**
```ruby
# in your controller where you want to have cookies handling available
class ApplicationController < ActionController::Base
  include Referrals::CookiesConcern  
  # ...  
end  
```
<commit_msg>Description of integration - update<commit_after># referrals [under development - not yet production ready]

[![Build Status](https://travis-ci.org/psagan/referrals.svg?branch=master)](https://travis-ci.org/psagan/referrals)
[![Code Climate](https://codeclimate.com/github/psagan/referrals/badges/gpa.svg)](https://codeclimate.com/github/psagan/referrals)
[![Gem Version](https://badge.fury.io/rb/referrals.svg)](https://badge.fury.io/rb/referrals)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Referrals engine dedicated for Ruby on Rails based applications

# Referrals
Short description and motivation.

## Usage
How to use my plugin.

## Installation
Add this line to your application's Gemfile:

```ruby
gem 'referrals'
```

And then execute:
```bash
$ bundle
```

After that run:
```bash
bin/rails referrals:install:migrations
```
It will copy engine's migrations to your project.
Now migrate:
```bash
# Rails 4
bin/rake db:migrate

# Rails 5
bin/rails db:migrate
```


## Integration with Rails
**Controller helper**
```ruby
# in your controller where you want to have cookies handling available
class ApplicationController < ActionController::Base
  include Referrals::CookiesConcern  
  # ...  
end  
```

{'fraction_non_alphanumeric': 0.1430264717502963, 'fraction_numerical': 0.0015804030027657052, 'mean_word_length': 5.145631067961165, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1901581', 'n_tokens_mistral': 879, 'n_tokens_neox': 789, 'n_words': 203}