mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-30 12:19:38 +00:00
use "do end" instead of {} at ActiveRecord scope lambda of app/models/board.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20330 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
050b05689f
commit
8303dac21c
@ -31,10 +31,10 @@ class Board < ActiveRecord::Base
|
||||
validates_length_of :description, :maximum => 255
|
||||
validate :validate_board
|
||||
|
||||
scope :visible, lambda {|*args|
|
||||
scope :visible, (lambda do |*args|
|
||||
joins(:project).
|
||||
where(Project.allowed_to_condition(args.shift || User.current, :view_messages, *args))
|
||||
}
|
||||
end)
|
||||
|
||||
safe_attributes 'name', 'description', 'parent_id', 'position'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user