Closed eitoball closed 11 years ago
Good catch! The "reason" is just because the "original" code was like that: https://github.com/rails/rails/blob/3e0a60e4e2316ee696bdcf1c115582f8f450ad07/railties/lib/rails/commands/dbconsole.rb#L85 I just copied from here.
I think that
Pathname#read
can be used instead of usingIO#read
withPathname
instance...Are there any reasons?