Fixed issue with define_attribute_methods to work with Rails 3
Merge pull request #37 from abellotti/rails_3_compatibility

Fixed issue with define_attribute_methods to work with Rails 3