Make sure we dont define the attrs more than once.
Add regression tests
Merge pull request #8 from arthurnn/perf_regression_40

Fix performance issue with Rails 4