Validates Constancy

  • Browse Documentation
  • Browse Source

I have no constancy! I have no constancy!

— Theodore Roosevelt

Take it easy, Mr President.

Validates Constancy is a plugin that extends the validations provided by Ruby on Rails’s ORM library, Active Record.

Validations prevent you from saving an Active Record model object whose state is invalid. This validation, validates_constancy_of, marks as invalid a model object whose constant attribute(s) are different from their values in the database. This allows you to ensure that one or more attributes never change after an object is saved for the first time.

See the README for instructions on how to:

  • Install the plugin
  • Run automated test suites under various versions of Rails

Tip jar

If you like this plugin please:

  • Give me kudos, rate the plugin and add it to your stack at Ohloh
  • Mark the plugin a favorite of yours and leave a comment at Railsify
  • Vote for the plugin and mark it a favorite of yours at Agile Web Development

Thanks!

— /\/. _/.
nils@alumni.rice.edu