Skip to content

Commit

Permalink
DialogRunner: put back a missing line.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpovolny committed Mar 27, 2018
1 parent 7350a81 commit 48c073a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/application_controller/dialog_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ module ApplicationController::DialogRunner
extend ActiveSupport::Concern

def redirect_url
if restful_routed?(self.class.model)
model = self.class.model
if restful_routed?(model)
polymorphic_path(model.find(session[:edit][:target_id]))
else
{:action => 'show', :id => session[:edit][:target_id]}
Expand Down

0 comments on commit 48c073a

Please sign in to comment.