lib/intercom-rails/proxy.rb in intercom-rails-0.2.29 vs lib/intercom-rails/proxy.rb in intercom-rails-0.2.30

- old
+ new

@@ -70,10 +70,10 @@ def config_variable_set?(variable_name) config.send(variable_name).present? end def identity_present? - self.class.identity_attributes.any? { |attribute_name| proxied_object.respond_to?(attribute_name) && proxied_object.send(attribute_name).present? } + self.class.identity_attributes.any? { |attribute_name| (proxied_object.is_a?(Hash) && proxied_object[attribute_name].present?) || (proxied_object.respond_to?(attribute_name) && proxied_object.send(attribute_name).present?) } end def self.proxy_delegator(attribute_name, options = {}) instance_variable_name = :"@_proxy_#{attribute_name}_delegated_value" standard_data_proxy_attributes << attribute_name