forked from wezm/wezm.net
Only load bitly when necessary
This commit is contained in:
parent
ae6811ad41
commit
e68662dd73
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
require 'bitly'
|
||||
require 'rubypants'
|
||||
|
||||
module WezM
|
||||
module Helpers
|
||||
|
@ -23,6 +23,7 @@ module WezM
|
|||
end
|
||||
|
||||
def short_url(url)
|
||||
require 'bitly'
|
||||
begin
|
||||
@bitly ||= Bitly.new('wezm', 'R_f2bfdace56c886671086eb0c8acb9ce7')
|
||||
@cache ||= {}
|
||||
|
|
Loading…
Reference in a new issue