Sha256: 4562af3a9f630cf95014104d94580dd55b49c042b8c964221515f30b8fee6a34

Contents?: true

Size: 532 Bytes

Versions: 1

Compression:

Stored size: 532 Bytes

Contents

require_dependency "simplec/application_controller"
require_dependency "simplec/page_action_helpers"

module Simplec
  class PagesController < ApplicationController
    include Simplec::ActionController::Extensions
    include Simplec::PageActionHelpers

    def show
      begin
        render_path params[:path] || ''
      rescue ActiveRecord::SubclassNotFound => e
        # TODO add proc config for error notification, airbrake, etc
        #
        Rails.logger.info e
        render status: 404
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simplec-0.4.1 app/controllers/simplec/pages_controller.rb