fix method name for File

This commit is contained in:
bogdanvlviv
2016-04-12 09:03:54 +03:00
parent 9914ff32ec
commit 0f11c0f6b3
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ CONTENT
private
def model_exists?
File.exists?(File.join(destination_root, model_path))
File.exist?(File.join(destination_root, model_path))
end
def migration_exists?(table_name)

View File

@@ -11,4 +11,4 @@ end
# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])