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