lib/thinreports/layout/base.rb in thinreports-0.8.1 vs lib/thinreports/layout/base.rb in thinreports-0.8.2
- old
+ new
@@ -13,10 +13,10 @@
# @raise [Thinreports::Errors::InvalidLayoutFormat]
# @raise [Thinreports::Errors::IncompatibleLayoutFormat]
def load_format(filename)
filename += ".#{EXT_NAME}" unless filename =~/\.#{EXT_NAME}$/
- unless File.exists?(filename)
+ unless File.exist?(filename)
raise Thinreports::Errors::LayoutFileNotFound
end
# Build format.
Thinreports::Layout::Format.build(filename)
end