lib/adyen/templates/notification_model.rb in adyen-1.2.0 vs lib/adyen/templates/notification_model.rb in adyen-1.3.0
- old
+ new
@@ -54,17 +54,17 @@
# @see Adyen.notification#successful_authorisation?
def authorisation?
event_code == 'AUTHORISATION'
end
- alias :authorization? :authorisation?
+ alias_method :authorization?, :authorisation?
# Returns true if this notification is an AUTHORISATION notification and
# the success status indicates that the authorization was successfull.
# @return [true, false] true iff the notification is an authorization
# and the authorization was successful according to the success field.
def successful_authorisation?
event_code == 'AUTHORISATION' && success?
end
- alias :successful_authorization? :successful_authorisation?
+ alias_method :successful_authorization?, :successful_authorisation?
end