#631: fixed misprint in model and controller
This commit is contained in:
parent
71d14e43d6
commit
c1d87a36da
|
@ -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)
|
||||
|
|
|
@ -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 = {})
|
||||
|
|
Loading…
Reference in New Issue