Sha256: 535223cb4233ce5a8f0c9008f82ef3d06ce6a1beadf14e9f9785cad61924a602
Contents?: true
Size: 613 Bytes
Versions: 9
Compression:
Stored size: 613 Bytes
Contents
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 Dir["#{RAILS_ROOT}/components/plugins/textfilters/[_a-z]*.rb"].each do |f| require_dependency f end
Version data entries
9 entries across 9 versions & 1 rubygems