volt 0.5.17 → 0.5.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e4f5423f3b9a84c1bfe34c738d04edcc9c64356
4
- data.tar.gz: 7098aa69961bc0ab0753e44bb1538a4250824bed
3
+ metadata.gz: 772c4d0aaa812cfcf06f57870866fb11a7048e5f
4
+ data.tar.gz: 2acf6521c5efa480cb06857becb68133cce953c5
5
5
  SHA512:
6
- metadata.gz: 36724949a70fdc32f0dfded8516eeccac29c5a487de5a128bc3aca8fce8d88cba8b6ab8444d894645c652e589cbb750147b3e63437c09bc973ebddec9cc526a3
7
- data.tar.gz: c9cd8217aaabd2cf2c518e28a0e42f3e4d622c9cbf3f0a5975b8a3a4ed8a638976346b2cb7209f4f816ec2feed8c03d94bac78744cb183f0b7b9d74fb5c83407
6
+ metadata.gz: 34531249996f8ef4b435c60b70d08fdccc1558049f669ea19c738ce5bf05b8c7d6ea9452b1ca0e135d5d472be3d5cd7bdc45a550c044a54f6597d8e2f0fbc80f
7
+ data.tar.gz: b6d154d43b4226306965eed1aa8b04b4b15891b5c4c133dac70a0565e838d058203b9bd15a6b77810b73b1d1d55aa6b4c20e6e862b96c48256352cc5d7fc47ab
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.17
1
+ 0.5.18
@@ -9,16 +9,16 @@ class ComponentBinding < TemplateBinding
9
9
  def render_template(full_path, controller_name)
10
10
  # TODO: at the moment a :body section and a :title will both initialize different
11
11
  # controllers. Maybe we should have a way to tie them together?
12
- controller = get_controller(controller_name)
12
+ controller_class = get_controller(controller_name)
13
13
  model_with_parent = {parent: @context}.merge(@model || {})
14
14
 
15
- if controller
15
+ if controller_class
16
16
  # The user provided a controller, pass in the model as an argument (in a
17
17
  # sub-context)
18
18
  args = []
19
19
  args << SubContext.new(model_with_parent) if @model
20
20
 
21
- current_context = controller.new(*args)
21
+ current_context = controller_class.new(*args)
22
22
  @controller = current_context
23
23
  else
24
24
  # There is not a controller
@@ -134,7 +134,7 @@ class TemplateBinding < BaseBinding
134
134
  args << SubContext.new(@model) if @model
135
135
 
136
136
  # Setup the controller
137
- current_context = controller.new(*args)
137
+ current_context = controller_class.new(*args)
138
138
  @controller = current_context
139
139
  else
140
140
  # Pass the context directly
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.17
4
+ version: 0.5.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Stout