Class: TranslationPolicy

Inherits:
ApplicationPolicy
  • Object
show all
Defined in:
app/policies/translation_policy.rb

Instance Method Summary collapse

Instance Method Details

#create?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'app/policies/translation_policy.rb', line 6

def create?
  user && user.admin?
end

#index?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'app/policies/translation_policy.rb', line 2

def index?
  user && user.admin?
end