Skip to content

Commit

Permalink
open struct is not a hash (yet)
Browse files Browse the repository at this point in the history
fixes CNVS-21597

test plan:
- Run application with ruby 1.9.3.
- Observe that there is no exception when using the new user dashboard.

Change-Id: I791958472836a3c4d3f59b8904253589f8f21134
Reviewed-on: https://gerrit.instructure.com/57469
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
Product-Review: Benjamin Porter <bporter@instructure.com>
  • Loading branch information
John Corrigan authored and roor0 committed Jul 2, 2015
1 parent e0cd797 commit d6341bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/presenters/section_tab_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def hide?
end

def path
tab[:args].instance_of?(Hash) ? send(tab[:href], tab[:args]) : send(tab[:href], *path_args)
tab.args.instance_of?(Hash) ? send(tab.href, tab.args) : send(tab.href, *path_args)
end

def path_args
Expand Down

0 comments on commit d6341bc

Please sign in to comment.