Permalink
Browse files

Rails 3.1 compatability fix for the parent_layout helper

  • Loading branch information...
1 parent 375b787 commit e9604ecc339c9a0efd9178a62b7a6b69d3a974c2 @adamcrown adamcrown committed Sep 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/helpers/admin_data/application_helper.rb
View
2 app/helpers/admin_data/application_helper.rb
@@ -23,7 +23,7 @@ def get_sort_class(column)
end
def parent_layout(layout)
- @_content_for[:layout] = self.output_buffer
+ content_for(:layout, self.output_buffer)
self.output_buffer = render(:file => "layouts/#{layout}")
end

0 comments on commit e9604ec

Please sign in to comment.