class ActiveModel::Serializer
def strip_attribute(attr)
def strip_attribute(attr) symbolized = attr.is_a?(Symbol) attr = attr.to_s.gsub(/\?\Z/, '') attr = attr.to_sym if symbolized attr end
def strip_attribute(attr) symbolized = attr.is_a?(Symbol) attr = attr.to_s.gsub(/\?\Z/, '') attr = attr.to_sym if symbolized attr end