All pastes #161902 Raw Edit

Stuff

public text v1 · immutable
·published 2006-09-05 22:27 UTC
rendered paste body
  def before_save
    self.attributes.each do |attribute| 
      self.send(attribute, attribute.upcase) if attribute.is_a?(String) 
    end
  end