Sha256: 25570015834d8141f81a17d1cf5b7ff37e42644f66b79d896f7e1cd833798231
Contents?: true
Size: 596 Bytes
Versions: 9
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(:modal => 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
9 entries across 9 versions & 1 rubygems