4 attr :model, :attribute_name, :attribute_manifest,
6 def initialize model, attribute_name, attribute_manifest
8 @attribute_name = attribute_name
9 @attribute_manifest = attribute_manifest
15 raise "undefined type for models > #{self.model_name} > attributes > #{@attribute_name}\n" unless @attribute_manifest['type']
16 @attribute_manifest['primary_key'] ||= 0
17 @attribute_manifest['rules'] ||= {}
21 @primary_key = @attribute_manifest['primary_key']
22 @rules = @attribute_manifest['rules']