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

Commit

Permalink
A few stylistic updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jystewart committed May 24, 2012
1 parent 18c605f commit 612227d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/artefacts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ def index
@artefacts = Artefact.order_by([[:name, :asc]])

@section = params[:section] || "all"
if !params[:section].blank? && params[:section] != "all"
@artefacts = @artefacts.where(:tag_ids => params[:section])
unless params[:section].blank? || params[:section] != "all"
@artefacts = @artefacts.where(tag_ids: params[:section])
end

respond_with @artefacts
Expand Down Expand Up @@ -69,7 +69,7 @@ def extract_parameters(params)
# Strip out the empty submit option for sections
['sections'].each do |param|
param_value = parameters_to_use[param]
param_value.reject! &:blank? if param_value
param_value.reject!(&:blank?) if param_value
end
parameters_to_use
end
Expand Down

0 comments on commit 612227d

Please sign in to comment.