Class: HomePolicy
- Inherits:
-
ApplicationPolicy
- Object
- ApplicationPolicy
- HomePolicy
- Defined in:
- lib/generators/tsykvas_rails_template/install/templates/app/policies/home_policy.rb
Overview
Canonical example policy paired with Home::Operation::Index. The home page is public, so ‘index?` returns true unconditionally. Replace with real authorization rules when the home page is no longer a placeholder.
Instance Attribute Summary
Attributes inherited from ApplicationPolicy
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
7 |
# File 'lib/generators/tsykvas_rails_template/install/templates/app/policies/home_policy.rb', line 7 def index? = true |