Class: WelcomePolicy

Inherits:
ApplicationPolicy show all
Defined in:
app/policies/welcome_policy.rb

Overview

Policy for root page - /

Instance Attribute Summary

Attributes inherited from ApplicationPolicy

#record, #user

Instance Method Summary collapse

Methods inherited from ApplicationPolicy

#create?, #destroy?, #edit?, #initialize, #new?, #show?, #update?

Constructor Details

This class inherits a constructor from ApplicationPolicy

Instance Method Details

#index?Boolean

Returns:

  • (Boolean)

5
6
7
# File 'app/policies/welcome_policy.rb', line 5

def index?
  true
end