Guest User

Untitled

a guest
May 26th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. class ViewerConfigurationController < ApplicationController
  2. skip_filter filter_chain
  3.  
  4. def index
  5. config_hash = ViewerConfiguration.to_json
  6.  
  7. unless config_hash.values.compact.empty?
  8. expires_in 10.years, :public => true
  9. render :json => config_hash, :status => :ok
  10. else
  11. render :nothing => true, :status => :internal_server_error
  12. end
  13. end
  14. end
Add Comment
Please, Sign In to add comment