Guest User

Untitled

a guest
Jul 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. module ActionView
  2. module Helpers
  3. module PrototypeHelper
  4. def link_to_remote_if(condition, name, options = {}, html_options = nil)
  5. condition ? link_to_remote(name, options, html_options) : name
  6. end
  7.  
  8. def link_to_remote_unless(condition, name, options = {}, html_options = nil)
  9. !condition ? link_to_remote(name, options, html_options) : name
  10. end
  11. end
  12. end
  13. end
Add Comment
Please, Sign In to add comment