Sha256: a4ec2f6dbf4221a9ff115c7d27be8db36e03bd6a9bccd1671fc71a475516c7bb
Contents?: true
Size: 390 Bytes
Versions: 28
Compression:
Stored size: 390 Bytes
Contents
module InquiriesHelper def open_close_link(inquiry) if inquiry.open? link_to("Open", {:action => 'toggle_status', :id => inquiry.id}, {:title => "Click to close this inquiry"}) else link_to("Closed", {:action => 'toggle_status', :id => inquiry.id}, {:title => "Click to open this inquiry back up"}) end end end
Version data entries
28 entries across 28 versions & 1 rubygems