Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: ebada05034
26 lines (21 sloc) 0.557 kB
module Readability
module Helpers
module Authentication
def readabilified?
!!readability_access
end
def readability_access
session[:readability][:readability_access] if session[:readability]
end
def readability(resource, args = {}, body = {})
readability_client.request(resource, args, body)
end
def dereadabilify
session[:readability] = nil
end
def readability_client
@client ||= Readability::Client.new(readability_access)
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.