Module: Alchemy::Admin::ArchiveOverlay

Included in:
AttachmentsController, PicturesController
Defined in:
app/controllers/concerns/alchemy/admin/archive_overlay.rb

Instance Method Summary collapse

Instance Method Details

#assignObject

Sets assignable id on given form field via JS.

When the user saves the model the assignable gets persisted with the model as well.



11
12
13
14
# File 'app/controllers/concerns/alchemy/admin/archive_overlay.rb', line 11

def assign
  @assignable_id = params[:id]
  @form_field_id = params[:form_field_id]
end