Changeset 9015
- Timestamp:
- 03/13/08 02:25:10 (2 months ago)
- Files:
-
- trunk/activesupport/lib/active_support/core_ext/string/filters.rb (modified) (1 diff)
- trunk/railties/lib/initializer.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activesupport/lib/active_support/core_ext/string/filters.rb
r8878 r9015 12 12 # " foo bar \n \t boo".squish # => "foo bar boo" 13 13 def squish 14 strip.gsub(/\s+/, ' ')14 dup.squish! 15 15 end 16 16 17 17 # Performs a destructive squish. See String#squish. 18 18 def squish! 19 replace(squish) 19 strip! 20 gsub!(/\s+/, ' ') 21 self 20 22 end 21 23 end trunk/railties/lib/initializer.rb
r8806 r9015 256 256 logger.set_non_blocking_io 257 257 end 258 rescue StandardError => e258 rescue StandardError => e 259 259 logger = ActiveSupport::BufferedLogger.new(STDERR) 260 260 logger.level = ActiveSupport::BufferedLogger::WARN