class Interview::AutoAttribute
Public Instance Methods
build(b)
click to toggle source
# File lib/interview/controls/auto_attribute.rb, line 4 def build(b) object = @object || find_attribute!(:object) if object.class.column_types[@method] attribute_type = object.class.column_types[@method].type attribute_class = "#{type.to_s.camelcase}Attribute" if Object.const_defined?(attribute_class) end end end