Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-12-01 21:11:10 +01:00
16 Zeilen
186 B
Ruby
16 Zeilen
186 B
Ruby
|
class CustomWizard::ActionResult
|
||
|
attr_accessor :success, :handler
|
||
|
|
||
|
def initialize
|
||
|
@success = false
|
||
|
end
|
||
|
|
||
|
def success?
|
||
|
@success
|
||
|
end
|
||
|
|
||
|
def failed?
|
||
|
!success
|
||
|
end
|
||
|
end
|