Sha256: b2a604412524b06ef62d0400940c5ceca12ff5da94a991bd3dd1c36e7673ca49

Contents?: true

Size: 1.65 KB

Versions: 1

Compression:

Stored size: 1.65 KB

Contents

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>with_oauth (SimpleMapper::HttpOAuthExtension)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File lib/simple_mapper/default_plugins/oauth.rb, line 42</span>
      <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">with_oauth</span>(<span class="ruby-identifier">controller</span>)
        <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">element_name</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">element_name</span>
        <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">collection_name</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">collection_name</span>
        <span class="ruby-identifier">duped</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span>
        <span class="ruby-identifier">duped</span>.<span class="ruby-identifier">set_oauth</span>(<span class="ruby-identifier">controller</span>)
        <span class="ruby-keyword kw">yield</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
        <span class="ruby-identifier">duped</span>
      <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simplemapper-0.0.1 doc/classes/SimpleMapper/HttpOAuthExtension.src/M000049.html