History

Change app.config.version to an integer instead of string

Thibaut Courouble committed 10 years ago

Commit ed0fa5d1 parent 472d40d2 files · +2 −2Browse files

Showing the changes to assets/javascripts (2 of 2 files). Show all

Unified · Split

2 files
  1. assets/javascripts/app/config.coffee.erb +1 −1
  2. assets/javascripts/app/db.coffee +1 −1
assets/javascripts/app/config.coffee.erb+1−1
@@ -10,4 +10,4 @@ app.config = · 9 unmodified lines
1010 production_host: 'devdocs.io'
1111 search_param: 'q'
1212 sentry_dsn: '<%= App.sentry_dsn %>'
13− version: '<%= Time.now.to_i %>'
13+ version: <%= Time.now.to_i %>
assets/javascripts/app/db.coffee+1−1
@@ -280,4 +280,4 @@ class app.DB · 279 unmodified lines
280280 app.settings.get('schema')
281281
282282 appVersion: ->
283− if app.config.env is 'production' then parseInt(app.config.version, 10) else Math.floor(Date.now() / 1000)
283+ if app.config.env is 'production' then app.config.version else Math.floor(Date.now() / 1000)