public
Description: Rails developer quickstart to using RubyAMF
Homepage: http://www.pillowfactory.org/pages/rubyamf-quickly
Clone URL: git://github.com/pillowfactory/rubyamf_quickly.git
commit  7e79781236b8c0c094fd5847c092cb2975d9bd71
tree    44f01d1d35b06945f1191f4284663ac2d6da1428
parent  fdb6a33bb69f4ca738d8d34fc8dc3f0eb112148a
rubyamf_quickly / init.rb
100644 9 lines (7 sloc) 0.456 kb
1
2
3
4
5
6
7
8
9
require File.join('app', 'controllers', 'application')
require 'rubyamf_quickly'
 
# Include the filter methods
ActionController::Base.send(:include, RubyAMF::Quickly::Filters)
 
# Add the filters to ApplicationController
ApplicationController.before_filter( :prepare_amf_params ) if RubyAMF::Quickly::Config.stuff_params
ApplicationController.rescue_from( Exception, :with => :amf_exception_handler ) if RubyAMF::Quickly::Config.convert_unhandled_exceptions