Class: ForestAdminAgent::Services::ApprovalSelectionTooLargeError
- Inherits:
-
UnprocessableError
- Object
- UnprocessableError
- ForestAdminAgent::Services::ApprovalSelectionTooLargeError
- Defined in:
- lib/forest_admin_agent/services/smart_action_checker.rb
Instance Method Summary collapse
-
#initialize(max) ⇒ ApprovalSelectionTooLargeError
constructor
A new instance of ApprovalSelectionTooLargeError.
Constructor Details
#initialize(max) ⇒ ApprovalSelectionTooLargeError
Returns a new instance of ApprovalSelectionTooLargeError.
24 25 26 27 28 29 |
# File 'lib/forest_admin_agent/services/smart_action_checker.rb', line 24 def initialize(max) super( "This action requires approval and cannot be triggered on more than #{max} records at once. " \ 'Please refine your selection.' ) end |