Sha256: 33c4bebe8126b9e894541600370d92fd76d4210f9a359f6b68e67a96890a6056
Contents?: true
Size: 690 Bytes
Versions: 6
Compression:
Stored size: 690 Bytes
Contents
module AboutPage class AboutController < ApplicationController before_filter :only => :index do AboutPage.configuration.preflight(request) end def index @configuration = AboutPage.configuration @configuration = @configuration.select { |key, value| (params[:filter].split(/[\W\+]/) + ["app"]).include? key.to_s } if params[:filter] @configuration.set_headers!(response) respond_to do |format| format.html { render :status => @configuration.valid? ? 200 : 417 } # about_page.html.erb format.json { render :json => @configuration.to_json } format.xml { render :xml => @configuration.to_xml } end end end end
Version data entries
6 entries across 6 versions & 1 rubygems