Sha256: e0d7bc3cf2d5a7b20452077808f05313fb292a0e0210e87f85301f1d4a25ebaa

Contents?: true

Size: 187 Bytes

Versions: 1

Compression:

Stored size: 187 Bytes

Contents

  def active_link_to(text, path, options={})
    if /^#{url_for(path)}/ =~ request.path
      options[:class] = "#{options[:class]} active"
    end
    link_to text, path, options
  end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
buildybuild-1.1.0 lib/generators/buildybuild/active_link/templates/active_link_helper.rb