Method: RecordSelect::Actions#select
- Defined in:
- lib/record_select/actions.rb
#select ⇒ Object
:method => :post params => [:id]
38 39 40 41 42 43 44 45 46 47 |
# File 'lib/record_select/actions.rb', line 38 def select klass = record_select_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 |