mirror of
https://github.com/redmine/redmine.git
synced 2026-07-08 10:12:27 +02:00
use "do end" instead of {} at ActiveRecord scope lambda of app/models/changeset.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20340 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -49,10 +49,10 @@ class Changeset < ActiveRecord::Base
|
||||
validates_uniqueness_of :revision, :scope => :repository_id
|
||||
validates_uniqueness_of :scmid, :scope => :repository_id, :allow_nil => true
|
||||
|
||||
scope :visible, lambda {|*args|
|
||||
scope :visible, (lambda do |*args|
|
||||
joins(:repository => :project).
|
||||
where(Project.allowed_to_condition(args.shift || User.current, :view_changesets, *args))
|
||||
}
|
||||
end)
|
||||
|
||||
after_create :scan_for_issues
|
||||
before_create :before_create_cs
|
||||
|
||||
Reference in New Issue
Block a user