Sha256: 359d8ca2e46295e5203fe092a4cc22982175ca08da190901fda72ccc38bbdb21

Contents?: true

Size: 307 Bytes

Versions: 13

Compression:

Stored size: 307 Bytes

Contents

class AlternativeFinderController < HighVoltage::PagesController
  private

  def page_finder_factory
    Rot13PageFinder
  end

  class Rot13PageFinder < HighVoltage::PageFinder
    def find
      paths = super.split('/')
      "#{paths[0..-2].join('/')}/#{paths[-1].tr('a-z','n-za-m')}"
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
high_voltage-3.1.1 spec/support/app/controllers/alternative_finder_controller.rb
high_voltage-3.1.0 spec/support/app/controllers/alternative_finder_controller.rb
high_voltage-3.0.0 spec/support/app/controllers/alternative_finder_controller.rb
high_voltage-2.4.0 spec/support/app/controllers/alternative_finder_controller.rb
high_voltage-2.3.0 spec/support/app/controllers/alternative_finder_controller.rb
high_voltage-2.2.1 spec/dummy/app/controllers/alternative_finder_controller.rb
high_voltage-2.2.0 spec/dummy/app/controllers/alternative_finder_controller.rb
high_voltage-2.1.0 spec/dummy/app/controllers/alternative_finder_controller.rb
high_voltage-2.0.0 spec/dummy/app/controllers/alternative_finder_controller.rb
high_voltage-1.2.4 spec/dummy/app/controllers/alternative_finder_controller.rb
high_voltage-1.2.3 spec/dummy/app/controllers/alternative_finder_controller.rb
high_voltage-1.2.2 spec/dummy/app/controllers/alternative_finder_controller.rb
high_voltage-1.2.1 spec/dummy/app/controllers/alternative_finder_controller.rb