#211: replaced "->" to "lambda"
This commit is contained in:
parent
2ae7749302
commit
925d7d81ef
|
@ -43,7 +43,7 @@ class BuildList < ActiveRecord::Base
|
|||
validate lambda {
|
||||
errors.add(:save_to_repository, I18n.t('flash.build_list.wrong_project')) unless save_to_repository.projects.exists?(project_id)
|
||||
}
|
||||
before_validation -> { self.include_repos = include_repos.uniq if include_repos.present? }, :on => :create
|
||||
before_validation lambda { self.include_repos = include_repos.uniq if include_repos.present? }, :on => :create
|
||||
before_validation :prepare_extra_repositories, :on => :create
|
||||
before_validation :prepare_extra_build_lists, :on => :create
|
||||
|
||||
|
|
Loading…
Reference in New Issue