search for: rulelevel

Displaying 1 result from an estimated 1 matches for "rulelevel".

Did you mean: relevel
2006 Apr 05
0
Is this model ordering logical or crazy?
Bit of a mind-bender here... I''m got a model that tracks rules that are applied to different levels of product data, including: Make, Product Range, Model, Derivative. There''s a RuleLevel class to represent each level and has a column position. It looks something like this: class RuleLevel < ActiveRecord::Base include Comparable def +(offset) RuleLevel.level_for_position(position + offset) end def -(offset) RuleLevel.level_for_position(position - offs...