lib/relaxo/model/properties/attribute.rb in relaxo-model-0.3.9 vs lib/relaxo/model/properties/attribute.rb in relaxo-model-0.4.0
- old
+ new
@@ -21,9 +21,10 @@
require 'date'
module Relaxo
module Model
module Properties
+ # Handle conversions for standard datatypes.
class Attribute
@@attributes = {}
def self.for_class(klass, &block)
@@attributes[klass] = Proc.new(&block)