discourse/lib/post_action_result.rb
Loïc Guitaut 008b700a3f DEV: Upgrade to Rails 7
This patch upgrades Rails to version 7.0.2.4.
2022-04-28 11:51:03 +02: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