Skip to content

Commit 7ae4798

Browse files
committed
remove locals
1 parent 34b67d7 commit 7ae4798

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/views/networks/index.html.haml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@
3737
Join some
3838
= link_to 'here', networks_path
3939
or from the list below
40-
= render determine_networks_partial(@index_networks_params[:sort]), locals: {networks_list: current_user.try(:networks_based_on_skills) || Network.most_protips.first(7), user: (defined?(@user) ? @user : nil)}
41-
= render determine_networks_partial(@index_networks_params[:sort]), locals: {networks_list: @networks, user: (defined?(@user) ? @user : nil)}
40+
= render determine_networks_partial(@index_networks_params[:sort]), networks_list: current_user.try(:networks_based_on_skills) || Network.most_protips.first(7), user: (defined?(@user) ? @user : nil)
41+
= render determine_networks_partial(@index_networks_params[:sort]), networks_list: @networks, user: (defined?(@user) ? @user : nil)

app/views/teams/new.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
%h1.big-title Reserve Team Name
1212
.panel.cf
1313
.inside-panel-align-left
14-
= render 'form', locals: { team: @team }
14+
= render 'form', team: @team

app/views/teams/upgrade.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
%input.button{:type => "submit", :value => "Post A Job"}
4141
- else
4242
%section.feature.payment.cf
43-
= render "payment", locals: { account: @team.account || @team.build_account, plan: @team.account.try(:current_plan) }
43+
= render "payment", account: @team.account || @team.build_account, plan: @team.account.try(:current_plan)
4444

4545

4646

0 commit comments

Comments
 (0)