-
Notifications
You must be signed in to change notification settings - Fork 225
Upgrading
adzap edited this page Oct 11, 2010
·
6 revisions
The plugin has been rewritten for Rails 3 to support the ActiveModel system. This has simplified things greatly. However there are a few changes are they are mainly just in the configuration.
Before anything make sure you have run the generator for the plugin to output the config initializer and I18n file.
$ rails generate validates_timeliness:install
Then see the config/initializers/validates_timeliness.rb file.
The plugin parser is now optional and is turned off by default. To turn it on you need to change the option in the config.
# in the setup block config.use_plugin_parser = true
For convenience you can use the setup block to configure the parser as well. See the initializer for the examples.