module ActiveFedora::AttributeMethods::Write
def attribute=(attribute_name, value)
def attribute=(attribute_name, value) write_attribute(attribute_name, value) end
def write_attribute(attribute_name, value)
def write_attribute(attribute_name, value) if self.class.properties.key?(attribute_name) @attributes[attribute_name] = value else raise ActiveModel::MissingAttributeError, "can't write unknown attribute `#{attribute_name}'" end end