Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11093 (closed enhancement: fixed)

Opened 5 months ago

Last modified 5 months ago

[PATCH] Remove options from AR::Base.attributes

Reported by: juanjo.bazan Assigned to: nzkoz
Priority: normal Milestone: 2.x
Component: ActiveRecord Version: edge
Severity: normal Keywords: activerecord base attributes except only
Cc:

Description

No need to support these options. As stated in #rails-contrib you can do foo.attributes.slice(:foo).except(:bar)

Attachments

remove_options.diff (2.4 kB) - added by juanjo.bazan on 02/12/08 23:09:38.
patch removing options(and tests)

Change History

02/12/08 23:09:38 changed by juanjo.bazan

  • attachment remove_options.diff added.

patch removing options(and tests)

02/13/08 02:19:50 changed by nzkoz

  • status changed from new to closed.
  • resolution set to fixed.

(In [8863]) Remove options from the attributes method, tidy up the implementation. Closes #11093 [juanjo.bazan, Koz]