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