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:
parent
6ec003aaa5
commit
e817beea3c
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue