acts_as_comparable 1.2 released
on June 30, 2007 @ 08:55 PM

acts_as_comparable 1.2 has been released with a minor update. This includes a fix to handling additional options passed into the declarative acts_as_comparable call.

For example with acts_as_comparable 1.1:

1
2
3
4
5
6
7
8
9
# this works
class Model < ActiveRecord::Base
  acts_as_comparable
end

# the options passed in are ignored.
class Model < ActiveRecord::Base
  acts_as_comparable :except => [:id, :name]
end

Now in 1.2 this is fixed so you can pass the following options make calls like:

1
2
3
  acts_as_comparable
  acts_as_comparable :only=>[:first_name, :last_name]
  acts_as_comparable :except => [:id, :name]

Installing as a RubyGem


gem install -r acts_as_comparable

Installing as a Plugin

Installing from a version

1
2
script/plugin install \
  http://rails.lotswholetime.com/svn/acts_as_comparable/tags/acts_as_comparable-1.2

  1. Jennifer 07.12.07 / 06AM

    Can the parents of Olivia please contact me? It is very important.

    Thank you.