1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Guard against VERSION already initialized warning when running rake

This commit is contained in:
Kamal Fariz Mahyuddin 2008-03-16 17:11:46 +08:00 committed by Nathan Weizenbaum
parent 6ec003aaa5
commit e817beea3c

View file

@ -880,7 +880,7 @@ $LOAD_PATH << dir unless $LOAD_PATH.include?(dir)
#
module Haml
# A string representing the version of Haml
VERSION = File.read(File.dirname(__FILE__) + '/../VERSION').strip
VERSION = File.read(File.dirname(__FILE__) + '/../VERSION').strip unless defined?(VERSION)
# This method is called by init.rb,
# which is run by Rails on startup.