This project is archived and is in readonly mode.

Changeset [250c8092461f5e6bf62751b313f6605a37fd1b2b] by José Valim

February 21st, 2010 @ 10:12 AM

Require persisted? in ActiveModel::Lint and remove new_record? and destroyed? methods. ActionPack does not care if the resource is new or if it was destroyed, it cares only if it's persisted somewhere or not.

Committed by José Valim

  • M actionpack/lib/action_controller/polymorphic_routes.rb
  • M actionpack/lib/action_view/helpers/active_model_helper.rb
  • M actionpack/lib/action_view/helpers/form_helper.rb
  • M actionpack/lib/action_view/helpers/url_helper.rb
  • M actionpack/test/controller/mime_responds_test.rb
  • M actionpack/test/controller/redirect_test.rb
  • M actionpack/test/lib/controller/fake_models.rb
  • M actionpack/test/template/active_model_helper_test.rb
  • M actionpack/test/template/atom_feed_helper_test.rb
  • M actionpack/test/template/form_helper_test.rb
  • M actionpack/test/template/record_tag_helper_test.rb
  • M actionpack/test/template/url_helper_test.rb
  • M activemodel/examples/validations.rb
  • M activemodel/lib/active_model/conversion.rb
  • M activemodel/lib/active_model/lint.rb
  • M activemodel/test/cases/conversion_test.rb
  • M activemodel/test/cases/lint_test.rb
  • M activemodel/test/models/contact.rb
  • M activerecord/lib/active_record/base.rb
  • M activerecord/test/cases/base_test.rb

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=""></a>