Module: Alchemy::Admin::ArchiveOverlay
- Included in:
- AttachmentsController, PicturesController
- Defined in:
- app/controllers/concerns/alchemy/admin/archive_overlay.rb
Instance Method Summary collapse
-
#assign ⇒ Object
Sets assignable id on given form field via JS.
Instance Method Details
#assign ⇒ Object
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 |