end
else
respond_to do |format|
- format.html { render :layout => !request.xhr? }
- format.any(:atom, :csv, :pdf) { head 422 }
- format.api { render_validation_errors(@query) }
+ format.html {render :layout => !request.xhr?}
+ format.any(:atom, :csv, :pdf) {head 422}
+ format.api {render_validation_errors(@query)}
end
end
rescue ActiveRecord::RecordNotFound
def new
respond_to do |format|
- format.html { render :action => 'new', :layout => !request.xhr? }
+ format.html {render :action => 'new', :layout => !request.xhr?}
format.js
end
end
render :action => 'new'
end
}
- format.api { render_validation_errors(@issue) }
+ format.api {render_validation_errors(@issue)}
end
end
end
return unless update_issue_from_params
respond_to do |format|
- format.html { }
+ format.html {}
format.js
end
end
issue_path(@issue, previous_and_next_issue_ids_params)
)
}
- format.api { render_api_ok }
+ format.api {render_api_ok}
end
else
respond_to do |format|
- format.html { render :action => 'edit' }
- format.api { render_validation_errors(@issue) }
+ format.html {render :action => 'edit'}
+ format.api {render_validation_errors(@issue)}
end
end
end
end
target_projects ||= @projects
- @trackers = target_projects.map {|p| Issue.allowed_target_trackers(p) }.reduce(:&)
+ @trackers = target_projects.map {|p| Issue.allowed_target_trackers(p)}.reduce(:&)
if params[:issue]
@target_tracker = @trackers.detect {|t| t.id.to_s == params[:issue][:tracker_id].to_s}
if @target_tracker
end
end
respond_to do |format|
- format.html { redirect_back_or_default _project_issues_path(@project) }
- format.api { render_api_ok }
+ format.html {redirect_back_or_default _project_issues_path(@project)}
+ format.api {render_api_ok}
end
end