lib/ree/link_dsl.rb in ree-1.0.9 vs lib/ree/link_dsl.rb in ree-1.0.10
- old
+ new
@@ -105,13 +105,13 @@
file_path = File.join(
Ree::PathHelper.abs_package_dir(package),
Ree::PACKAGE, path
)
- if !File.exists?(file_path)
+ if !File.exist?(file_path)
file_path = "#{file_path}.rb"
- if !File.exists?(file_path)
+ if !File.exist?(file_path)
_raise_error("Unable to link '#{path}'. File not found #{file_path}")
end
end
Ree.container.packages_facade.load_file(file_path, package.name)