Sha256: 9f5802f1f389be472416adfca7b7baad21f0a51c879a8515c4d985ef8b0ce890

Contents?: true

Size: 511 Bytes

Versions: 21

Compression:

Stored size: 511 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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
typo-5.5 app/controllers/textfilter_controller.rb
typo-5.4.4 app/controllers/textfilter_controller.rb
typo-5.4.3 app/controllers/textfilter_controller.rb
typo-5.4.2 app/controllers/textfilter_controller.rb
typo-5.4.1 app/controllers/textfilter_controller.rb
typo-5.4 app/controllers/textfilter_controller.rb
typo-4.1.1 app/controllers/textfilter_controller.rb
typo-5.0.2 app/controllers/textfilter_controller.rb
typo-5.0.1 app/controllers/textfilter_controller.rb
typo-4.1 app/controllers/textfilter_controller.rb
typo-5.0.3.98.1 app/controllers/textfilter_controller.rb
typo-5.0.3.98 app/controllers/textfilter_controller.rb
typo-5.0 app/controllers/textfilter_controller.rb
typo-5.1.1 app/controllers/textfilter_controller.rb
typo-5.1.2 app/controllers/textfilter_controller.rb
typo-5.1.3 app/controllers/textfilter_controller.rb
typo-5.1.98 app/controllers/textfilter_controller.rb
typo-5.1 app/controllers/textfilter_controller.rb
typo-5.2.98 app/controllers/textfilter_controller.rb
typo-5.2 app/controllers/textfilter_controller.rb