class ActiveModel::Serializer
def attributes(*attrs)
def attributes(*attrs) attrs.each do |attr| striped_attr = strip_attribute attr @_attributes << striped_attr define_method striped_attr do object.read_attribute_for_serialization attr end unless method_defined?(attr) end end