Skip to content

Commit

Permalink
Change pusher_api_key to more simple #9
Browse files Browse the repository at this point in the history
  • Loading branch information
kysnm committed Apr 19, 2012
1 parent ca1e047 commit f88c80e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f88c80e

Please sign in to comment.