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
|
user.present? && record.user == user
|
||||||
end
|
end
|
||||||
|
|
||||||
def activemaps?
|
|
||||||
user.blank? # redirect to root url if authenticated for some reason
|
|
||||||
end
|
|
||||||
|
|
||||||
def contains?
|
def contains?
|
||||||
show?
|
show?
|
||||||
end
|
end
|
||||||
|
@ -57,14 +53,6 @@ class MapPolicy < ApplicationPolicy
|
||||||
show?
|
show?
|
||||||
end
|
end
|
||||||
|
|
||||||
def featuredmaps?
|
|
||||||
true
|
|
||||||
end
|
|
||||||
|
|
||||||
def mymaps?
|
|
||||||
user.present?
|
|
||||||
end
|
|
||||||
|
|
||||||
def star?
|
def star?
|
||||||
unstar?
|
unstar?
|
||||||
end
|
end
|
||||||
|
@ -76,8 +64,4 @@ class MapPolicy < ApplicationPolicy
|
||||||
def screenshot?
|
def screenshot?
|
||||||
update?
|
update?
|
||||||
end
|
end
|
||||||
|
|
||||||
def usermaps?
|
|
||||||
true
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue