Sha256: 4eb74f7b9bbc6c053d07743ae1e63edf4fc8f86baab58f9e24dfab7e4112a3d6

Contents?: true

Size: 533 Bytes

Versions: 1

Compression:

Stored size: 533 Bytes

Contents

# NormalizeLineEndings

Converts \r\n characters to \n for attributes on ActiveModel-like entities.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'normalize_line_endings'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install normalize_line_endings

## Usage

Run tests by cd'ing to the root of the gem directory and running `rake test`

```
class Post < ApplicationRecord
  normalize_line_endings :only => [:foo, :bar, :biz]
end
```

See the tests for more example usages.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
normalize_line_endings-0.0.1 README.md