Sha256: 000a7d77a37d0d3cf6459ad3c7c0d923031e647d1404d20cdbafef0d2ac247ee
Contents?: true
Size: 590 Bytes
Versions: 10
Compression:
Stored size: 590 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" url_params = params.reject {|key, value| key =~ /(action)|(controller)/} if @dialog_type == 'image' @iframe_src = insert_admin_images_url(:dialog => true) elsif @dialog_type == 'link' @iframe_src = link_to_admin_pages_dialogs_url(url_params) end render :layout => false #"admin_dialog" else render :nothing => true end end end
Version data entries
10 entries across 10 versions & 2 rubygems