mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-26 10:21:14 +00: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:
parent
44e51105b1
commit
f227d898d4
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user