def edit_link(path, options = {})
      return unless ndr_can?(:edit, path)

      path = edit_polymorphic_path(path) if path.is_a?(ActiveRecord::Base)

      link_to_with_icon({ icon: 'pencil', title: 'Edit', path: path }.merge(options))
    end
def edit_link(path, options = {})
      return unless ndr_can?(:edit, path)

      path = edit_polymorphic_path(path) if path.is_a?(ActiveRecord::Base)

      link_to_with_icon({ icon: 'pencil', title: 'Edit', path: path }.merge(options))
    end
Creates a Boostrap 'Edit' link.

 ==== Signatures

   edit_link(path, options = {})

 ==== Examples

   <%= edit_link(#) %>
   # => <a title="Edit" class="btn btn-default btn-xs" href="#">
          <span class="glyphicon glyphicon-pencil"></span>
        </a>