Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-03-24 20:24:22 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-03-24 20:24:22 +0300
commit39a51f9e1c8b42a5307b3d6bf74ca23712443695 (patch)
treefea8d986ba875b2a934d782a5995afedb4c94f6e /app/models/event.rb
parent239560331ab5ef635a8739f5b2b85d0bcd531256 (diff)
Rename `Event#proper?` to `Event#visible_to_user?`
Diffstat (limited to 'app/models/event.rb')
-rw-r--r--app/models/event.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/event.rb b/app/models/event.rb
index 2b963d4f2f6..12183524b79 100644
--- a/app/models/event.rb
+++ b/app/models/event.rb
@@ -73,7 +73,7 @@ class Event < ActiveRecord::Base
end
end
- def proper?(user = nil)
+ def visible_to_user?(user = nil)
if push?
true
elsif membership_changed?