27 lines
286 B
Ruby
27 lines
286 B
Ruby
|
class MainPolicy < ApplicationPolicy
|
||
|
def initialize(user, record)
|
||
|
@user = user
|
||
|
@record = nil
|
||
|
end
|
||
|
|
||
|
def home?
|
||
|
true
|
||
|
end
|
||
|
|
||
|
def searchtopics?
|
||
|
true
|
||
|
end
|
||
|
|
||
|
def searchmaps?
|
||
|
true
|
||
|
end
|
||
|
|
||
|
def searchmappers?
|
||
|
true
|
||
|
end
|
||
|
|
||
|
def searchsynapses?
|
||
|
true
|
||
|
end
|
||
|
end
|