ClassMethods¶
Constants¶
Methods¶
def build_property(name, options) DeclaredProperty.new(name, options).tap do |prop| prop.register declared_properties.register(prop) yield name constraint_or_index(name, options) end end
def declared_properties @_declared_properties ||= DeclaredProperties.new(self) end
def extract_association_attributes!(props) props end
def inherit_property(name, attr_def, options = {}) build_property(name, options) do |prop_name| attributes[prop_name] = attr_def end end
def undef_property(name) undef_constraint_or_index(name) declared_properties.unregister(name) attribute_methods(name).each { |method| undef_method(method) } end