Sha256: 6540122b7e41a84667442146557d80e56ef8a212cf43fc5a33dc540b2d849aa2
Contents?: true
Size: 517 Bytes
Versions: 1
Compression:
Stored size: 517 Bytes
Contents
module DynamicMenu class ActionMenuItem include ActionView::Helpers::UrlHelper attr_accessor :name, :link, :method, :link_tag def initialize(name, link, method = :get, confirm="Are You Sure?") @name = name @link = link @method = method @link_tag = "" if method == :delete @link_tag = link_to name, link, :method=>method, :confirm=>confirm else @link_tag = link_to name, link end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dynamic_menu-0.1.0 | lib/dynamic_menu.rb |