Add `length` alias for `size` method in AbstractAdapter
The reason behind this I'm trying to use StringioAdapter inside the mailer, and it fails because `length` used in one of the `mail` gem: https://github.com/mikel/mail/blob/master/lib/mail/message.rb#L1997 Also you can see that normally `size` has `length` alias, for example in a `StringIO` class: http://ruby-doc.org/stdlib-1.9.3/libdoc/stringio/rdoc/StringIO.html#method-i-length Let me know, if this change requires test case, I will add it.
Showing
Please
register
or
sign in
to comment