This project is archived and is in readonly mode.

#6699 new
Matt Albright

You can't require 'active_model/validations'

Reported by Matt Albright | April 13th, 2011 @ 07:14 PM

If all I want from active model is validations, I cannot easily do that. I don't want to require all of active model, because it will then pull in all of active support, which is complete overkill (and breaks some things in Padrino).

I want:

require 'active_model/validations'
class Foo
  include ActiveModel::Validations
...
end

I have to do:

require 'active_model/deprecated_error_methods'
require 'active_model/validator'
require 'active_model/naming'
require 'active_model/translation'
require 'active_model/validations'
class Foo
  include ActiveModel::Validations
...
end

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages