lib/active_remote/publication.rb in active_remote-1.6.1 vs lib/active_remote/publication.rb in active_remote-1.7.0
- old
+ new
@@ -4,10 +4,10 @@
#
def publishable_hash
keys = _publishable_attributes_or_attribute_keys
attributes_hash = keys.inject({}) do |publishable_hash, key|
- value = respond_to?(key) ? __send__(key) : @attributes[key]
+ value = respond_to?(key) ? __send__(key) : read_attribute(key)
publishable_hash[key] = case
when value.respond_to?(:map) then
_map_value(value)
when value.respond_to?(:publishable_hash) then