metamaps--metamaps/app/policies/main_policy.rb
2016-09-24 11:00:46 +08:00

27 lines
317 B
Ruby

# frozen_string_literal: true
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