Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

Commit

Permalink
Move assets version to an initializer
Browse files Browse the repository at this point in the history
This makes it easier to expire all assets.
  • Loading branch information
joegatt committed Aug 30, 2013
1 parent a0b49db commit 541cd0a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ class Application < Rails::Application
# Enable the asset pipeline
config.assets.enabled = true

# Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.1'

# Generators
config.generators do |g|
g.test_framework :rspec,
Expand Down
2 changes: 2 additions & 0 deletions config/initializers/assets_version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Version of your assets, change this if you want to expire all your assets
Nembrot::Application.config.assets.version = Settings.assets_version || '1.0'
1 change: 1 addition & 0 deletions config/nembrot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ defaults: &defaults
daemon_frequency: 30
errors: ['', 'UNKNOWN', 'BAD_DATA_FORMAT', 'PERMISSION_DENIED', 'INTERNAL_ERROR', 'DATA_REQUIRED', 'LIMIT_REACHED', 'QUOTA_REACHED', 'INVALID_AUTH', 'AUTH_EXPIRED', 'DATA_CONFLICT', 'ENML_VALIDATION', 'SHARD_UNAVAILABLE', 'LEN_TOO_SHORT', 'LEN_TOO_LONG', 'TOO_FEW', 'TOO_MANY', 'UNSUPPORTED_OPERATION']
daemon_frequency: 30
assets_version: '1.1'
lang:
average_word_length: 5.5
rtl_langs: ['ar', 'fa']
Expand Down

0 comments on commit 541cd0a

Please sign in to comment.