Sha256: 575fc30056b6243e0e91024ae3bfb4e961e0d99dda35d8c14e31706671e53519

Contents?: true

Size: 839 Bytes

Versions: 7

Compression:

Stored size: 839 Bytes

Contents

# Demoji

MySQL configured with utf-8 encoding blows up when trying to save text rows containing emojis, etc., to address this, Demoji rescues from that specific exception and replaces the culprit chars with empty spaces.

This is a workaround until Rails adds support for UTF8MB4 in migrations, schema, etc.

## Installation

Add this line to your application's Gemfile:

    gem 'demoji'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install demoji

## Usage

Write an initializer in: `config/initializers/demoji.rb`:

```ruby
ActiveRecord::Base.send :include, Demoji
```

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
demoji-0.0.7 README.md
demoji-0.0.6 README.md
demoji-0.0.5 README.md
demoji-0.0.4 README.md
demoji-0.0.3 README.md
demoji-0.0.2 README.md
demoji-0.0.1 README.md