amatsuda / database_rewinder

minimalist's tiny and ultra-fast database cleaner
MIT License
807 stars 91 forks source link

Use Pathname#read instead #5

Closed eitoball closed 11 years ago

eitoball commented 11 years ago

I think that Pathname#read can be used instead of using IO#read with Pathname instance...

Are there any reasons?

amatsuda commented 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.