Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ViewerConfigurationController < ApplicationController
- skip_filter filter_chain
- def index
- config_hash = ViewerConfiguration.to_json
- unless config_hash.values.compact.empty?
- expires_in 10.years, :public => true
- render :json => config_hash, :status => :ok
- else
- render :nothing => true, :status => :internal_server_error
- end
- end
- end
Add Comment
Please, Sign In to add comment