class SimpleStep
  include ActiveModel::Model
  include ActiveModel::AttributeAssignment
  include ActiveModel::Validations::Callbacks

  # TODO: We should be using a path helper here because this info exists here and
  # in routes.rb
  def self.path
    "/steps/#{name.underscore.dasherize}"
  end

  delegate :path, to: :class
end

class SimpleStep
  include ActiveModel::Model
  include ActiveModel::AttributeAssignment
  include ActiveModel::Validations::Callbacks

  # TODO: We should be using a path helper here because this info exists here and
  # in routes.rb
  def self.path
    "/steps/#{to_param}"
  end

  delegate :path, to: :class

  def self.to_param
    name.underscore.dasherize
  end
end

Add to_param to SimpleStep to fix StepNavigation
Add to_param to SimpleStep to fix StepNavigation
