Sha256: 9ccc4fbce92956023b7e5cf3528eb703a936edcf26270abc0ac9762714db0b02

Contents?: true

Size: 610 Bytes

Versions: 5

Compression:

Stored size: 610 Bytes

Contents

# encoding: utf-8

module Link2
  module Helpers

    include ::Link2::Brain

    # Enhanced +link_to+ helper.
    #
    # TODO: Documentation for this helper. For now the README should be sufficient.
    #
    def link(*args, &block)
      args = self.link_to_args(*args)
      link_to(*args)
    end
    alias :link2 :link

    # Enhanced +button_to+ helper.
    #
    # == Usage/Examples:
    #
    # (See +link+ - identical except for passed +button_to+-options)
    #
    def button(*args, &block)
      args = self.link_to_args(*args)
      button_to(*args)
    end
    alias :button2 :button

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
link2-0.1.11 lib/link2/helpers.rb
link2-0.1.10 lib/link2/helpers.rb
link2-0.1.9 lib/link2/helpers.rb
link2-0.1.8 lib/link2/helpers.rb
link2-0.1.7 lib/link2/helpers.rb