diff --git a/config/application.rb b/config/application.rb index fa2a3c8c..3fc2620f 100644 --- a/config/application.rb +++ b/config/application.rb @@ -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, diff --git a/config/initializers/assets_version.rb b/config/initializers/assets_version.rb new file mode 100644 index 00000000..95b8cab6 --- /dev/null +++ b/config/initializers/assets_version.rb @@ -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' diff --git a/config/nembrot.yml b/config/nembrot.yml index 96408776..217577cb 100644 --- a/config/nembrot.yml +++ b/config/nembrot.yml @@ -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']