@@ -30,7 +30,7 class Board < ActiveRecord::Base | |||||
30 | validates_length_of :description, :maximum => 255 |
|
30 | validates_length_of :description, :maximum => 255 | |
31 | validate :validate_board |
|
31 | validate :validate_board | |
32 |
|
32 | |||
33 |
scope :visible, lambda {|*args| |
|
33 | scope :visible, lambda {|*args| | |
34 | includes(:project).where(Project.allowed_to_condition(args.shift || User.current, :view_messages, *args)) |
|
34 | includes(:project).where(Project.allowed_to_condition(args.shift || User.current, :view_messages, *args)) | |
35 | } |
|
35 | } | |
36 |
|
36 |
General Comments 0
You need to be logged in to leave comments.
Login now