Sha256: 2976b6766ca0106f8763b78bc9f31f5be3d4c2db98c90d92bd88ba4352000b5f

Contents?: true

Size: 348 Bytes

Versions: 1

Compression:

Stored size: 348 Bytes

Contents

module YuiOnRails
  module PrototypeHelper
    #alias :original_link_to_remote :link_to_remote
    
    def link_to_remote_with_yui(name, options = {}, html_options = nil)
      options.merge!(:before=>"alert('blah blah')")
      link_to_remote_without_yui(name, options, html_options)
    end
    alias_method_chain :link_to_remote, :yui
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yui-on-rails-0.1.8 lib/yui-on-rails/prototype_helper.rb