Sha256: 15c5275e5f4ce96c4df015c595ab1a8e6c5061f9e7b14c48f31d840d8d79c754

Contents?: true

Size: 257 Bytes

Versions: 13

Compression:

Stored size: 257 Bytes

Contents

# frozen_string_literal: true

module Phlexible
  module Rails
    # Calls `url_for` for the `href` attribute.
    module AElement
      def a(href:, **kwargs, &block)
        super(href: helpers.url_for(href), **kwargs, &block)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
phlexible-2.0.0 lib/phlexible/rails/a_element.rb
phlexible-1.0.0 lib/phlexible/rails/a_element.rb
phlexible-1.0.0.beta.1 lib/phlexible/rails/a_element.rb
phlexible-0.7.0 lib/phlexible/rails/a_element.rb
phlexible-0.6.2 lib/phlexible/rails/a_element.rb
phlexible-0.6.1 lib/phlexible/rails/a_element.rb
phlexible-0.6.0 lib/phlexible/rails/a_element.rb
phlexible-0.5.0 lib/phlexible/rails/a_element.rb
phlexible-0.4.2 lib/phlexible/rails/a_element.rb
phlexible-0.4.1 lib/phlexible/rails/a_element.rb
phlexible-0.4.0 lib/phlexible/rails/a_element.rb
phlexible-0.3.0 lib/phlexible/rails/a_element.rb
phlexible-0.2.0 lib/phlexible/rails/a_element.rb