ianwhite / response_for

response for lets you decorate your actions respond_to blocks

This URL has Read+Write access

response_for / init.rb
100644 7 lines (6 sloc) 0.214 kb
1
2
3
4
5
6
7
require 'ardes/response_for'
ActionController::Base.send :include, Ardes::ResponseFor
 
if Rails.version < "2.3.0"
  require 'ardes/response_for/bc'
  ActionController::Base.send :include, Ardes::ResponseFor::Bc
end