Class: Archangel::EntryPolicy

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

Overview

Entry policy

Instance Attribute Summary

Attributes inherited from ApplicationPolicy

#record, #user

Instance Method Summary collapse

Methods inherited from ApplicationPolicy

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

Constructor Details

This class inherits a constructor from Archangel::ApplicationPolicy

Instance Method Details

#sort?Boolean

Check if `#sort` action is authorized for current user

Returns:

  • (Boolean)

    true for all roles


13
14
15
# File 'app/policies/archangel/entry_policy.rb', line 13

def sort?
  true
end