vendor/plugins/acts_as_comparable/lib/acts_as_comparable/acts_as_comparable.rb
# Sets up the current model to be comparable against other models or instances.
#
# == Options
# * :only - an array of fields as symbols which should be held onto for comparison
# * :except - an array of fields as symbols which should not be held onto for comparison
# * :attrs_map - a hash of field to field mappings as symbols which define how fields should be compared  
Sets up the current model to be comparable against other models or instances.
Options
:only - an array of fields as symbols which should be held onto for comparison
:except - an array of fields as symbols which should not be held onto for comparison
:attrs_map - a hash of field to field mappings as symbols which define how fields should be compared
Sets up the current model to be comparable against other models or instances . Options : only - an array of fields as symbols which should be held onto for comparison : except - an array of fields as symbols which should not be held onto for comparison : attrs_map - a hash of field to field mappings as symbols which define how fields should be compared
def acts_as_comparable( options = {} )
      cattr_accessor :comparable_options
      include ActiveRecord::Acts::Comparable::InstanceMethods
      self.comparable_options = options
    end
def acts_as_comparable ( options = { } ) cattr_accessor :comparable_options include ActiveRecord :: Acts :: Comparable :: InstanceMethods self . comparable_options = options end
Sets up the current model to be comparable against other models or instances.
Sets up the current model to be comparable against other models or instances .
#pullin in necessary methods #setup options
options
<not_specific>