This project is archived and is in readonly mode.

#5311 ✓resolved
Greg Campbell

ActiveModel::Validations uses Hash#except, but does not require it from ActiveSupport

Reported by Greg Campbell | August 5th, 2010 @ 08:20 PM

Quick example:


    require 'active_model'

    class Model
      include ActiveModel::Validations
      attr_accessor :name
      validates_presence_of :name
    end

    Model.new.valid? # raises NoMethodError: undefined method `except' for {}:Hash

This was masked in the tests because the file is required elsewhere.
Patch (a simple one, of course) will be attached shortly.

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>

Attachments