Class: Archangel::AssetPolicy

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

Overview

Asset 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

#wysiwyg?Boolean

Check if `#wysiwyg` action is authorized for current user.

Returns:

  • (Boolean)

    true for all roles


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

def wysiwyg?
  true
end