Method: RecordSelect::Actions#select
- Defined in:
- lib/six-updater-web/vendor/plugins/recordselect/lib/record_select/actions.rb
#select ⇒ Object
:method => :post params => [:id]
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/six-updater-web/vendor/plugins/recordselect/lib/record_select/actions.rb', line 35 def select klass = record_select_config.model record = klass.find(params[:id]) if record_select_config.notify.is_a? Proc record_select_config.notify.call(record) elsif record_select_config.notify send(record_select_config.notify, record) end render :nothing => true end |