class GrapeTokenAuth::OmniAuthHTMLBase
Public Instance Methods
render_html()
click to toggle source
# File lib/grape_token_auth/omniauth/omniauth_html_base.rb, line 7 def render_html unless respond_to?(:json_post_data) && respond_to?(:auth_origin_url) fail 'Invalid OmniAuthHTMLBase class' end template.result(binding) end
Private Instance Methods
template()
click to toggle source
# File lib/grape_token_auth/omniauth/omniauth_html_base.rb, line 20 def template ERB.new(File.read(template_path)) end
template_path()
click to toggle source
# File lib/grape_token_auth/omniauth/omniauth_html_base.rb, line 16 def template_path File.expand_path('../response_template.html.erb', __FILE__) end