diff --git a/app.rb b/app.rb index 7d4cb6e..579ec26 100644 --- a/app.rb +++ b/app.rb @@ -32,12 +32,8 @@ end helpers do - def pusher_api_key - if ENV["RACK_ENV"] == "development" - ENV["PUSHER_KEY"] - else - URI.parse(ENV["PUSHER_URL"]).user - end + def pusher_api_key + ENV["RACK_ENV"] == "development" ? ENV["PUSHER_KEY"] : URI.parse(ENV["PUSHER_URL"]).user end end