diff --git a/lib/generators/aasm/orm_helpers.rb b/lib/generators/aasm/orm_helpers.rb index d7a5b11..28dff22 100644 --- a/lib/generators/aasm/orm_helpers.rb +++ b/lib/generators/aasm/orm_helpers.rb @@ -29,7 +29,7 @@ RUBY end def model_exists? - File.exists?(File.join(destination_root, model_path)) + File.exist?(File.join(destination_root, model_path)) end def model_path