diff --git a/app/controllers/platforms/repositories_controller.rb b/app/controllers/platforms/repositories_controller.rb index e52faea39..4063ec8d7 100644 --- a/app/controllers/platforms/repositories_controller.rb +++ b/app/controllers/platforms/repositories_controller.rb @@ -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) diff --git a/app/models/repository.rb b/app/models/repository.rb index 0069872de..a33566f6c 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -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 = {})