def attribute_transitioning?(attr, options={})
      options = _transform_options_for_attribute(attr, options)
      attribute_changed?(attr, options)
    end
def attribute_transitioning?(attr, options={})
      options = _transform_options_for_attribute(attr, options)
      attribute_changed?(attr, options)
    end
Returns +true+ if +attribute+ is currently transitioning but not saved, otherwise +false+.

 You can specify origin and destination states using the +:from+ and +:to+
 options. If +attribute+ is an +ActiveRecord::Enum+, these may be
 specified as either symbol or their native enum value.

  model = Model.new(status: :complete)
  # => #<Model:0x007fa94844d088 @status=:complete>

  model.status_transitioning?                            # => true
  model.status_transitioning?(from: nil)                 # => true
  model.status_transitioning?(to: :complete)             # => true
  model.status_transitioning?(to: "complete")            # => true
  model.status_transitioning?(from: nil, to: :complete)  # => true