Browse the Ruby on Rails Community.

You are here: Browse Railsplugins Reserved Attributes

Reserved Attributes

= Reserved Attributes

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

The list of reserved words is retreived from http://wiki.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 the most part.

= Use: rake check_reserved_attributes

= Author: Lucas HĂșngaro (http://makemesimple.com/blog/) Code based on Dave Thomas’ annotate_models

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

NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly

Users


See all details


Membership

+ Join this railsplugin

Record Maintainer

'None'