Retardase Inhibitor plugin

Plugin details

This plugin sets the default_url_options for host, port and protocol by providing an around_filter which will grab the values from the request object. In the cases when the request object is not available, for example, when running tests, default values are set instead.

Repositoryhttp://svn.devjavu.com/malaysia-rb/plugins/retardase_inhibitor Author Nick Kallen, Kamal Fariz Tags url LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://svn.devjavu.com/malaysia-rb/plugins/retardase_inhibitor

Add the around_filter to the ApplicationController to set the default_url_options for every request.

class ApplicationController < ActionController::Base
      around_filter :retardase_inhibitor
end



I prefer to add it just around the actions when I know an Observer will kick off an ActionMailer notifier. For example, I have an the filter kick off in my SessionsController#create when I process a user signup.

class SessionsController < ActionController::Base
      around_filter :retardase_inhibitor, :only => :create
      def create
        ...
      end
end

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: Guest, 10 months ago