Sha256: e243f679037978f6510fa1426e024e91305b2d6891f5ec1df06948ef92a303b9
Contents?: true
Size: 596 Bytes
Versions: 4
Compression:
Stored size: 596 Bytes
Contents
class Admin::DialogsController < Admin::BaseController layout 'admin_dialog' def show @dialog_type = params[:id].try(:downcase) if @dialog_type @submit_button_text = "Insert" @cancel_button_text = "Cancel" url_params = params.reject {|key, value| key =~ /(action)|(controller)/} @iframe_src = if @dialog_type == 'image' insert_admin_images_url(:dialog => true) elsif @dialog_type == 'link' link_to_admin_pages_dialogs_url(url_params) end render :layout => false else render :nothing => true end end end
Version data entries
4 entries across 4 versions & 1 rubygems