Module: SplitbuttonHelper
- Defined in:
- app/helpers/splitbutton_helper.rb
Instance Method Summary collapse
- #p_splitbutton(value, options = {}, &block) ⇒ Object
- #p_splitbutton_item(value, options = {}) ⇒ Object
Instance Method Details
#p_splitbutton(value, options = {}, &block) ⇒ Object
3 4 5 6 |
# File 'app/helpers/splitbutton_helper.rb', line 3 def (value,={},&block) output = (value,) output += (,&block) end |
#p_splitbutton_item(value, options = {}) ⇒ Object
8 9 10 11 12 13 |
# File 'app/helpers/splitbutton_helper.rb', line 8 def (value,={}) = .stringify_keys output = {:text => value} output = output.merge() output = output.to_json end |