lucashungaro / reserved_attributes

Rails plugin that checks your models for attributes with names that are reserved words (that will cause weird errors)

This URL has Read+Write access

name age message
file README Loading commit data...
directory lib/
directory tasks/
README
= Reserved Attributes

Checks all your models looking for attributes (columns) with names that are
Ruby/Rails reserved words.

The list of reserved words is retrieved from http://newwiki.rubyonrails.org/rails/pages/reservedwords and also in a 
dynamic way (calling Object.methods).

This task won't prevent all errors, but it'll cover most of them.

= Use:
  rake check_reserved_attributes

= Author: Lucas HĂșngaro (http://lucashungaro.github.com/)
  Code based on Dave Thomas' annotate_models

= Released under the same license as Ruby. No Support. No Warranty.