mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-06 09:03:25 +00:00
use "do end" instead of {} at ActiveRecord scope lambda of app/models/message.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20327 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b09c4decfe
commit
31beca84b3
@ -60,10 +60,10 @@ class Message < ActiveRecord::Base
|
||||
after_destroy :reset_counters!
|
||||
after_create_commit :send_notification
|
||||
|
||||
scope :visible, lambda {|*args|
|
||||
scope :visible, (lambda do |*args|
|
||||
joins(:board => :project).
|
||||
where(Project.allowed_to_condition(args.shift || User.current, :view_messages, *args))
|
||||
}
|
||||
end)
|
||||
|
||||
safe_attributes 'subject', 'content'
|
||||
safe_attributes(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user