mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 22:43:49 +08:00
008b700a3f
This patch upgrades Rails to version 7.0.2.4.
22 lines
240 B
Ruby
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
|