public
Description: Rails plugin that checks your models for attributes with names that are reserved words (that will cause weird errors)
Homepage: http://makemesimple.com/blog/
Clone URL: git://github.com/lucashungaro/reserved_attributes.git
100644 17 lines (10 sloc) 0.563 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
= 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.