Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
## humanized_attributes.rb class ActiveRecord::Base def self.human_attribute_name(attribute_key_name) default = attribute_key_name.humanize if self.const_defined?('HUMANIZED_ATTRIBUTES') self.const_get('HUMANIZED_ATTRIBUTES')[attribute_key_name.to_sym] || default else default end end end
This paste will be private.
From the Design Piracy series on my blog: