pluginaweek / state_machine

Adds support for creating state machines for attributes on any Ruby class
http://www.pluginaweek.org
MIT License
3.74k stars 507 forks source link

Replace File.exists? with File.exist? to avoid deprecation warning #319

Open algodave opened 10 years ago

algodave commented 10 years ago

File.exists? is a deprecated name in the latest MRI ruby-2.1.2 - see it on ruby-doc

I started getting the warning with ruby-2.1.0. Here it is:

gems/state_machine-1.2.0/lib/state_machine/integrations/base.rb:81: warning: File.exists? is a deprecated name, use File.exist? instead