Sha256: 8939623c46a5c86bda0433f25d1a576a940fe7d4e04ce18437b7b6f4cf9a6e9a

Contents?: true

Size: 497 Bytes

Versions: 3

Compression:

Stored size: 497 Bytes

Contents

module Tim
  class ApplicationController < ::ApplicationController
    protect_from_forgery

    respond_to :html, :xml

    self.responder = CustomResponder

    # 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
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tim-0.1.2 app/controllers/tim/application_controller.rb
tim-0.1.1 app/controllers/tim/application_controller.rb
tim-0.0.1 app/controllers/tim/application_controller.rb