#631: fixed misprint in model and controller

This commit is contained in:
Vokhmin Alexey V 2012-09-06 19:43:07 +04:00
parent 71d14e43d6
commit c1d87a36da
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class Platforms::RepositoriesController < Platforms::BaseController
def update
if @repository.update_attributes(
:description => params[:repository][:description],
:publish_wtihout_qa => (params[:repository][:publish_wtihout_qa] || @repository.publish_wtihout_qa)
:publish_without_qa => (params[:repository][:publish_without_qa] || @repository.publish_without_qa)
)
flash[:notice] = I18n.t("flash.repository.updated")
redirect_to platform_repository_path(@platform, @repository)

View File

@ -14,7 +14,7 @@ class Repository < ActiveRecord::Base
before_create :xml_rpc_create, :unless => lambda {Thread.current[:skip]}
before_destroy :xml_rpc_destroy, :unless => lambda {Thread.current[:skip]}
attr_accessible :name, :description, :publish_wtihout_qa
attr_accessible :name, :description, :publish_without_qa
attr_readonly :name, :platform_id
def base_clone(attrs = {})