Sha256: d06181ab2a29a4696d1d839bb1e653d591a9f24dcfe8fe7ff4c43d17b794769e

Contents?: true

Size: 227 Bytes

Versions: 4

Compression:

Stored size: 227 Bytes

Contents

# frozen_string_literal: true

module HumanRoutes
  module Extensions
    def route(controller, options = {}, &block)
      context = Context.new(self, controller, options)
      context.instance_eval(&block)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
human_routes-0.0.7 lib/human_routes/extensions.rb
human_routes-0.0.6 lib/human_routes/extensions.rb
human_routes-0.0.5 lib/human_routes/extensions.rb
human_routes-0.0.4 lib/human_routes/extensions.rb