Associations
Associations provides the class methods needed for the extension classes to create methods using belongs_to and has_many
# File lib/active_ldap/associations.rb, line 13 13: def self.append_features(base) 14: super 15: base.extend(ClassMethods) 16: base.class_inheritable_array(:associations) 17: base.associations = [] 18: end
# File lib/active_ldap/associations.rb, line 194 194: def clear_association_cache 195: return if new_record? 196: (self.class.associations || []).each do |association| 197: instance_variable_set("@#{association}", nil) 198: end 199: end
Disabled; run with --debug to generate this.
[Validate]
Generated with the Darkfish Rdoc Generator 1.1.6.