Skip to content

Commit

Permalink
Rails 3.1 compatability fix for the parent_layout helper
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcrown committed Sep 12, 2011
1 parent 375b787 commit e9604ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/admin_data/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e9604ec

Please sign in to comment.