clean up
This commit is contained in:
parent
b722d2d3b0
commit
3f9077b380
1 changed files with 0 additions and 16 deletions
|
@ -41,10 +41,6 @@ class MapPolicy < ApplicationPolicy
|
|||
user.present? && record.user == user
|
||||
end
|
||||
|
||||
def activemaps?
|
||||
user.blank? # redirect to root url if authenticated for some reason
|
||||
end
|
||||
|
||||
def contains?
|
||||
show?
|
||||
end
|
||||
|
@ -57,14 +53,6 @@ class MapPolicy < ApplicationPolicy
|
|||
show?
|
||||
end
|
||||
|
||||
def featuredmaps?
|
||||
true
|
||||
end
|
||||
|
||||
def mymaps?
|
||||
user.present?
|
||||
end
|
||||
|
||||
def star?
|
||||
unstar?
|
||||
end
|
||||
|
@ -76,8 +64,4 @@ class MapPolicy < ApplicationPolicy
|
|||
def screenshot?
|
||||
update?
|
||||
end
|
||||
|
||||
def usermaps?
|
||||
true
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue