instiki/vendor/rails/activesupport/lib/active_support/core_ext/string/bytesize.rb
Jacques Distler 4bdf703ab2 Instiki 0.17.2: Security Release
This release upgrades Instiki to Rails 2.3.4, which
patches two security holes in Rails. See

  http://weblog.rubyonrails.org/2009/9/4/ruby-on-rails-2-3-4

There are also some new features, and the usual boatload
of bugfixes. See the CHANGELOG for details.
2009-09-05 02:01:46 -05:00

6 lines
87 B
Ruby

unless '1.9'.respond_to?(:bytesize)
class String
alias :bytesize :size
end
end