#211: replaced "->" to "lambda"

This commit is contained in:
Vokhmin Alexey V 2013-07-09 14:36:35 +04:00
parent 2ae7749302
commit 925d7d81ef
1 changed files with 1 additions and 1 deletions

View File

@ -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