diff options
author | José Valim & Carlos Antonio da Silva <carlos+jose@plataformatec.com.br> | 2010-08-11 10:23:07 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-08-11 10:23:07 -0300 |
commit | f08b58dd0c0ad860bb119bde94a46c6330ca1556 (patch) | |
tree | 00568b167c44ca324514b0ddb67ef0ab1514b045 /actionpack/test/fixtures | |
parent | f5c5cdd4ae87b43c110fb341e6c7c27116dca606 (diff) | |
download | rails-f08b58dd0c0ad860bb119bde94a46c6330ca1556.tar.gz rails-f08b58dd0c0ad860bb119bde94a46c6330ca1556.tar.bz2 rails-f08b58dd0c0ad860bb119bde94a46c6330ca1556.zip |
layout_for works again with objects as specified in the documentation and Rails 2.3 [#5357 state:resolved]
Diffstat (limited to 'actionpack/test/fixtures')
-rw-r--r-- | actionpack/test/fixtures/layouts/_customers.erb | 1 | ||||
-rw-r--r-- | actionpack/test/fixtures/test/layout_render_object.erb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/test/fixtures/layouts/_customers.erb b/actionpack/test/fixtures/layouts/_customers.erb new file mode 100644 index 0000000000..ae63f13cd3 --- /dev/null +++ b/actionpack/test/fixtures/layouts/_customers.erb @@ -0,0 +1 @@ +<title><%= yield Struct.new(:name).new("David") %></title>
\ No newline at end of file diff --git a/actionpack/test/fixtures/test/layout_render_object.erb b/actionpack/test/fixtures/test/layout_render_object.erb new file mode 100644 index 0000000000..acc4453c08 --- /dev/null +++ b/actionpack/test/fixtures/test/layout_render_object.erb @@ -0,0 +1 @@ +<%= render :layout => "layouts/customers" do |customer| %><%= customer.name %><% end %>
\ No newline at end of file |