Sha256: 687d2648231673f3ff3676c0b8290e6a48ccf6522e74747e81d29eccea167ff8
Contents?: true
Size: 637 Bytes
Versions: 2
Compression:
Stored size: 637 Bytes
Contents
module Tim class ApplicationController < ::ApplicationController respond_to :html, :xml append_before_filter :set_default_respond_options # FIXME Remove filter once support for custom XML with nested resources is # supported by rails. before_filter UserKeysFilter, :only => [:create, :update] rescue_from ActiveRecord::RecordNotFound, :with => :render_not_found def render_not_found render :nothing => true, :status => :not_found end private def set_default_respond_options @respond_options = { :responder => CustomResponder } unless defined? @respond_options end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tim-0.3.0 | app/controllers/tim/application_controller.rb |
tim-0.2.0 | app/controllers/tim/application_controller.rb |