This commit is contained in:
Jonathan Rudenberg 2012-08-22 11:15:21 -04:00
parent decb9d8430
commit c0ca040c2c
19 changed files with 366 additions and 237 deletions

4
lib/render_child.rb Normal file
View file

@ -0,0 +1,4 @@
def render_child(name)
child = @item.children.find { |child| child.identifier == name }
child.reps.find { |rep| rep.name == :default }.content_at_snapshot(:last)
end