<commit_before># Ember Data ActiveModel Adapter [![Build Status](https://travis-ci.org/ember-data/active-model-adapter.svg?branch=master)](https://travis-ci.org/ember-data/active-model-adapter)

## Installation

### Ember CLI

`ember install active-model-adapter`

### Rails

This gem comes bundled with [Ember
Rails](https://github.com/emberjs/ember-rails). If you want to specify a
specific version in your `Gemfile`, you can reference the
`active-model-adapter-source` gem and it will get loaded by Ember Rails:

```ruby
gem 'active-model-adapter-source', '~>1.13' # or whatever version you
need
```

### Bower

`bower install --save active-model-adapter`

## Description

The ActiveModelAdapter is a subclass of the RESTAdapter designed to integrate
with a JSON API that uses an underscored naming convention instead of camelCasing.<commit_msg>add docs for accessing the serializer/adapter directly<commit_after># Ember Data ActiveModel Adapter [![Build Status](https://travis-ci.org/ember-data/active-model-adapter.svg?branch=master)](https://travis-ci.org/ember-data/active-model-adapter)

## Installation

### Ember CLI

`ember install active-model-adapter`

### Rails

This gem comes bundled with [Ember
Rails](https://github.com/emberjs/ember-rails). If you want to specify a
specific version in your `Gemfile`, you can reference the
`active-model-adapter-source` gem and it will get loaded by Ember Rails:

```ruby
gem 'active-model-adapter-source', '~>1.13' # or whatever version you
need
```

### Bower

`bower install --save active-model-adapter`

## Usage

You should make an `ApplicationAdapter` if you don't already have one:

```js
// app/adapters/application.js
import ActiveModelAdapter from 'active-model-adapter';

export default ActiveModelAdapter.extend();
```

If you need to subclass the `ActiveModelSerializer`, you can import it
into your serializer:

```js
// app/serializers/post.js

import {ActiveModelSerializer} from 'active-model-adapter';

export default ActiveModelSerializer.extend();
```

## Description

The ActiveModelAdapter is a subclass of the RESTAdapter designed to integrate
with a JSON API that uses an underscored naming convention instead of camelCasing.
{'fraction_non_alphanumeric': 0.11398728428701181, 'fraction_numerical': 0.0027247956403269754, 'mean_word_length': 5.068870523415978, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 6, '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': '1286691', 'n_tokens_mistral': 669, 'n_tokens_neox': 634, 'n_words': 219}