Sha256: 1912fd124c1e4c4fd40cf5b9acb8dec6d93f8e810e36a97f6f5c2438d9b36d14
Contents?: true
Size: 533 Bytes
Versions: 10
Compression:
Stored size: 533 Bytes
Contents
class Admin::DialogsController < Admin::BaseController def show if (@dialog_type = params[:id].try(:downcase)) 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.merge(:id => nil)) end render :layout => false else render :nothing => true end end def from_dialog? true end end
Version data entries
10 entries across 10 versions & 1 rubygems