mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 20:01:11 +08:00
b58867b6e9
Includes support for flags, reviewable users and queued posts, with REST API backwards compatibility. Co-Authored-By: romanrizzi <romanalejandro@gmail.com> Co-Authored-By: jjaffeux <j.jaffeux@gmail.com>
20 lines
220 B
Ruby
20 lines
220 B
Ruby
require_dependency 'has_errors'
|
|
|
|
class PostActionResult
|
|
include HasErrors
|
|
|
|
attr_accessor :success
|
|
|
|
def initialize
|
|
@success = false
|
|
end
|
|
|
|
def success?
|
|
@success
|
|
end
|
|
|
|
def failed?
|
|
!success
|
|
end
|
|
end
|