tension 0.9.7 → 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tension/railtie.rb +2 -7
- data/lib/tension/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc906aa325cb6c6e63d2fbcdb44a1e2be3a18e0a
|
4
|
+
data.tar.gz: fa098e09cf55ac5c4152583859cf1d38343d96ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 049abb4b1527302a0aa56c4e3b6fe83835485e31335f3ea1bbc093a4cfb1f2d1a4bcce739d5f133832477ce3f74d281f8b3cd82911a6c4b87319a402b70a0f3c
|
7
|
+
data.tar.gz: e122f1f04e4f63ab065537f4f5df25c4004203d242eaba6d7b26b767c887fa2177b12b0dc4ff1dbc1154e69538bf55abe7b1c3f91043afad28e3ca1064c1e20b
|
data/lib/tension/railtie.rb
CHANGED
@@ -4,20 +4,15 @@ module Tension
|
|
4
4
|
require 'rails'
|
5
5
|
|
6
6
|
class Railtie < Rails::Railtie
|
7
|
-
initializer "tension.add_assets_to_precompile_list" do |app|
|
8
|
-
|
9
|
-
if app.config.cache_classes
|
10
|
-
app.reload_routes!
|
11
|
-
Tension::Environment.eager_load!
|
12
|
-
end
|
13
7
|
|
8
|
+
initializer "tension.add_assets_to_precompile_list" do |app|
|
14
9
|
ActionView::Base.send(:include, Tension::Helper)
|
15
10
|
ActionController::Base.send(:include, Tension::Controller)
|
16
11
|
|
17
12
|
Rails.application.config.assets.precompile << lambda do |path, filename|
|
18
13
|
Tension::Environment.precompilation_needed?(path)
|
19
14
|
end
|
20
|
-
|
21
15
|
end
|
16
|
+
|
22
17
|
end
|
23
18
|
end
|
data/lib/tension/version.rb
CHANGED