Use more boolean comparators where it makes sense

This commit is contained in:
wvengen 2015-01-14 22:56:32 +01:00
parent 1063aea4af
commit 7e0aa66936
8 changed files with 15 additions and 15 deletions

View file

@ -41,7 +41,7 @@ class StockitController < ApplicationController
def create
@stock_article = StockArticle.new(params[:stock_article])
if @stock_article.valid? and @stock_article.save
if @stock_article.valid? && @stock_article.save
render :layout => false
else
render :action => 'new', :layout => false