Project

General

Profile

« Previous | Next » 

Revision c1f6ab89

Added by Marc Dequènes about 13 years ago

  • ID c1f6ab8918f43388a1acb95d45e05948e605a117

[evol] attributes parameters rework §5 (attribute params retrieval fix) (refs #142)

View differences:

lib/ldap_shadows/elements/object.rb
end
def attribute_parameters(attr, claimed_by)
obj = claimed_by.is_a?(Class) ? claimed_by : claimed_by.class
self.class.shadow.parameters[:interface][:attribute_defaults].dup.
recursive_merge(claimed_by.class.parameters[:interface][:attribute_defaults]).
recursive_merge(obj.parameters[:interface][:attribute_defaults]).
recursive_merge(self.class.shadow.parameters[:interface][:attributes][attr.to_sym] || {}).
recursive_merge(claimed_by.class.parameters[:interface][:attributes][attr.to_sym] || {})
recursive_merge(obj.parameters[:interface][:attributes][attr.to_sym] || {})
end
def fetch_attribute_data(attr, claimed_by)

Also available in: Unified diff