Skip to content

Commit

Permalink
server/bug: was requiring .build_time to exist even in dev.
Browse files Browse the repository at this point in the history
  • Loading branch information
issa-tseng committed Feb 28, 2011
1 parent 75d476f commit 4a1da25
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion asset_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ def self.build_time

def self.load
@@assets = YAML.load_file('assets.yml') || {}
@@build_time = File.read '.build_time'
begin
@@build_time = File.read '.build_time'
rescue Errno::ENOENT
@@build_time = Time.new.to_i.to_s
end
end
end

0 comments on commit 4a1da25

Please sign in to comment.