Object
"ID" that should be unique across serialization or regeneration of the suggestion - subclasses should override as needed, or just specify instance variable names not to include in the hash.
# File lib/admin/suggestion/types.rb, line 32 def id(*ignore_vars) Digest::MD5.hexdigest(self.class.to_s + (self.instance_variables - ignore_vars).sort. map {|v| "#{v}=#{self.instance_variable_get v}" }.join) end
Generated with the Darkfish Rdoc Generator 2.