Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
episode 287 - fixing parameter ordering for present controller method
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanb committed Oct 3, 2011
1 parent f7bc743 commit c06a058
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -5,6 +5,6 @@ class ApplicationController < ActionController::Base

def present(object, klass = nil)
klass ||= "#{object.class}Presenter".constantize
klass.new(view_context, object)
klass.new(object, view_context)
end
end

0 comments on commit c06a058

Please sign in to comment.