Class: Gera::PaymentSystemAuthorizer
- Inherits:
-
ApplicationAuthorizer
- Object
- ApplicationAuthorizer
- ApplicationAuthorizer
- Gera::PaymentSystemAuthorizer
- Defined in:
- app/authorizers/gera/payment_system_authorizer.rb
Constant Summary collapse
- WHITE_LIST =
Для изменения не админами запрещено менять все кроме разрешенных
%w[income_enabled outcome_enabled referal_output_enabled].freeze
Class Method Summary collapse
Class Method Details
.restricted_attributes ⇒ Object
9 10 11 |
# File 'app/authorizers/gera/payment_system_authorizer.rb', line 9 def self.restricted_attributes (Gera::PaymentSystem.attribute_names - WHITE_LIST).freeze end |