~srushe/validates_as_issn_old

[ARCHIVED] An out-of-date rails plugin to validate ISSNs
9379121c — Steve Rushe 12 years ago
First commit to repository (version 0.2).

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~srushe/validates_as_issn_old
read/write
git@git.sr.ht:~srushe/validates_as_issn_old

You can also use your local clone with git send-email.

ValidatesAsIssn
===============

This Ruby on Rails plugin implements an ActiveRecord validation helper
called validates_as_issn. The helper validates that the string provided
is a valid ISSN.

Installation
------------

ruby script/plugin install http://svn.deeden.co.uk/validates_as_issn/trunk

Full documentation on script/plugin can be obtained by invoking the plugin
script with no arguments:

ruby script/plugin

You may need to restart your webserver in order to load the plugin files.

Usage
-----

In your model file do something like:

class MyClass < ActiveRecord::Base
  validates_as_issn :issn
end