module ActiveModel::Serializable
def serializable_data
def serializable_data embedded_in_root_associations.tap do |hash| if respond_to?(:meta) && meta hash[meta_key] = meta end end end
def serializable_data embedded_in_root_associations.tap do |hash| if respond_to?(:meta) && meta hash[meta_key] = meta end end end