Sha256: 6b68668177a057a63e0d8262398d598add691f5937bbd655d42e97814f3e6b99
Contents?: true
Size: 1.21 KB
Versions: 3
Compression:
Stored size: 1.21 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>foreign_key (String)</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/facet/string/foreign_key.rb, line 4</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">foreign_key</span>(<span class="ruby-identifier">separate_class_name_and_id_with_underscore</span> = <span class="ruby-keyword kw">true</span>) <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">demodulize</span>.<span class="ruby-identifier">underscore</span> <span class="ruby-operator">+</span> ( <span class="ruby-identifier">separate_class_name_and_id_with_underscore</span> <span class="ruby-value">? </span><span class="ruby-value str">"_id"</span> <span class="ruby-operator">:</span> <span class="ruby-value str">"id"</span>) <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facets-0.7.0 | doc/atomic-rdoc/classes/String.src/M000277.html |
facets-0.7.1 | doc/atomic-rdoc/classes/String.src/M000277.html |
facets-0.7.2 | doc/atomic-rdoc/classes/String.src/M000279.html |