class Esquema::Builder
def initialize(model)
def initialize(model) raise ArgumentError, "Class is not an ActiveRecord model" unless model.ancestors.include? ActiveRecord::Base @model = model @properties = {} @required_properties = [] end
def initialize(model) raise ArgumentError, "Class is not an ActiveRecord model" unless model.ancestors.include? ActiveRecord::Base @model = model @properties = {} @required_properties = [] end