adzap/validates_timeliness — Issue #63: undefined method `validates_date' after installation
Author: MaartenG
Created: 2012-01-04 23:47:45+00:00
State: open

In a Rails 3.1.1 project I've installed validates_timeliness as a gem, and ran the installation command.

This is in my Gemfile: gem 'validates_timeliness', '~> 3.0.8'

However, if I now include validates_date in my model, I get

ActionController::RoutingError (undefined method `validates_date' for #):
app/models/user.rb:8:in `'
app/models/user.rb:1:in `'
app/controllers/users_controller.rb:3:in `'

If I run rails console, I can perform timeliness methods such as Timeliness.parse('2010-09-08 12:13:14') and Timeliness.parse('2010-09-08 12:13:14', :zone => :local). And if I add garbage to validates_timeliness.rb, the console won't start. My application? Doesn't care.

So somehow validates_timeliness isn't autoloading, but I don't know where to look.