tension 0.9.11 → 0.9.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tension/controller.rb +3 -3
- 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: 95257f7adf62e176df3ed678163e78ce4c326e14
|
4
|
+
data.tar.gz: cfc546cd1439e647dd5ec2b5189b8b66e3ae59a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b8a3ff79e452925800de9625469d4f9ecfdf9ce748c4ed147dd704741856980fb6d88c390b3d698358576b19d844ca0c69c65f0ff7ecfa719f8497c8c7cfdc2
|
7
|
+
data.tar.gz: 06c36e7eb6bfef898917942149da24b3655d1f232391aeab3a0eada680c254d11b189790b02d3d21a61f85670b253c9429d66eed038323f1a7a57c9bb1b40841
|
data/lib/tension/controller.rb
CHANGED
@@ -12,21 +12,21 @@ module Tension
|
|
12
12
|
# Returns the Context for the current controller.
|
13
13
|
#
|
14
14
|
def asset_context
|
15
|
-
find_asset_context( request.
|
15
|
+
find_asset_context( request.symbolized_path_parameters[:controller] )
|
16
16
|
end
|
17
17
|
|
18
18
|
# Returns the Sprockets Asset for the current action's JavaScript
|
19
19
|
# to be written into the template.
|
20
20
|
#
|
21
21
|
def action_javascript
|
22
|
-
asset_context.js( request.
|
22
|
+
asset_context.js( request.symbolized_path_parameters[:action] )
|
23
23
|
end
|
24
24
|
|
25
25
|
# Returns the Sprockets Asset for the current action's stylesheet
|
26
26
|
# to be written into the template.
|
27
27
|
#
|
28
28
|
def action_stylesheet
|
29
|
-
asset_context.css( request.
|
29
|
+
asset_context.css( request.symbolized_path_parameters[:action] )
|
30
30
|
end
|
31
31
|
|
32
32
|
# Proxy to Tension::Environment.find.
|
data/lib/tension/version.rb
CHANGED