Use more boolean comparators where it makes sense
This commit is contained in:
parent
1063aea4af
commit
7e0aa66936
8 changed files with 15 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue