textfilter_controller.rb
上传用户:netsea168
上传日期:2022-07-22
资源大小:4652k
文件大小:0k
- class TextfilterController < ApplicationController
- def public_action
- filter = params[:filter]
- action = params[:public_action]
- plugin = TextFilter.filters_map[filter]
- if(plugin and plugin.plugin_public_actions.include? action.to_sym)
- render_component(:controller => "plugins/textfilters/#{params[:filter]}",
- :action => params[:public_action], :params => params)
- else
- render :text => '', :status => 404
- end
- end
- def test_action
- render :text => ''
- end
- end