acts_as_comparable 1.2 released 30 Jun 2007
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:

# this work
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:

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

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

blog comments powered by Disqus