rails-api/active_model_serializers — pull request #268 by vanstee (2013-04-09 00:32:34+00:00)
Title: Support "unsymbolizable" strings as attribute names

When generating the `_fast_attributes` method, attribute names that could not be represented as symbols (at least without escaping) would throw parsing errors.

For instance:

```ruby
user_id: :"user-id"
```

Throws an exception when serializing:

```
NoMethodError:
undefined method `-' for :user:Symbol
```

Kinda bummed about the complexity in generating that `_fast_attributes` method. Is that for method caching fanciness?