Skip to content

lucashungaro/reserved_attributes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

= 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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages