Sha256: a71ab366da7707477825d39360b00cc7126e58bca302889bfc03f0d79963a8b3

Contents?: true

Size: 378 Bytes

Versions: 1

Compression:

Stored size: 378 Bytes

Contents

module Lena
  # Extending the object that's returned from rails routing helpers (for
  # instance +main_app+ or +lena+) that allow calling specific URL helper
  # methods.
  module Routing
    def configuration
      return {
        'data-lena-destination' => Rails.env.development? ? "local" : "",
        'data-lena-remote-url' => self.report_path,
      }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lena-0.0.2 lib/lena/routing.rb