cassiomarques/enumerate_it — pull request #26 by lerrua (2012-07-26 21:37:23+00:00)
Title: Adding :prefix option for has_enumeration_for

Hi Cássio!

First let me apologize for my bad English and also because this is my first pull request, hope to do it right. XD

My name is Igor Leroy and I work with Cairo and Sobrinho in Nohup and always use your enumerate_it in our projects. =)

However there was a situation where I needed to create a feature to generate prefixes, helpers, I'll show you an example:

```ruby
has_enumeration_for :ordered, :with => MileageControlGroup, :create_helpers => true
has_enumeration_for :grouped, :with => MileageControlGroup, :create_helpers => true
```

The objects ```grouped``` and ```ordered``` use the same Enumeration, but I need helpers unique to each object, for example ```ordered_name? ``` and ```grouped_name? ``` for my views on some reports that we do.

Now just do
```ruby
has_enumeration_for :grouped, :with => MileageControlGroup, :create_helpers => true, :prefix => true
```
and solved my problem.

I hope you accept my Pull Request and thank you for this gem. ;)