discourse/lib/post_action_result.rb
2023-01-09 12:10:19 +00:00

22 lines
240 B
Ruby

# frozen_string_literal: true
require "has_errors"
class PostActionResult
include HasErrors
attr_accessor :success
def initialize
@success = false
end
def success?
@success
end
def failed?
!success
end
end