Showing
2 changed files
with
9 additions
and
5 deletions
| @@ -229,11 +229,15 @@ module Kanjai | @@ -229,11 +229,15 @@ module Kanjai | ||
| 229 | end | 229 | end |
| 230 | end | 230 | end |
| 231 | else | 231 | else |
| 232 | - p elements | ||
| 233 | - p subparts | ||
| 234 | attributes = self.replace_attributes_marker(item[:attributes], hash_value) | 232 | attributes = self.replace_attributes_marker(item[:attributes], hash_value) |
| 235 | - subparts.send(item[:name], attributes) do |next_subparts| | ||
| 236 | - self.content_generator(item[:children], next_subparts, hash_value) | 233 | + if item[:name] == 'select' |
| 234 | + subparts.select(attributes) do |next_subparts| | ||
| 235 | + self.content_generator(item[:children], next_subparts, hash_value) | ||
| 236 | + end | ||
| 237 | + else | ||
| 238 | + subparts.send(item[:name], attributes) do |next_subparts| | ||
| 239 | + self.content_generator(item[:children], next_subparts, hash_value) | ||
| 240 | + end | ||
| 237 | end | 241 | end |
| 238 | end | 242 | end |
| 239 | 243 |