Method: Spree::Core::StateMachines::Order#checkout_steps
- Defined in:
- lib/spree/core/state_machines/order.rb
#checkout_steps ⇒ Object
218 219 220 221 222 223 224 225 226 227 |
# File 'lib/spree/core/state_machines/order.rb', line 218 def checkout_steps steps = self.class.checkout_steps.each_with_object([]) { |(step, ), checkout_steps| next if .include?(:if) && ![:if].call(self) checkout_steps << step }.map(&:to_s) # Ensure there is always a complete step steps << "complete" unless steps.include?("complete") steps end |