doc/classes/ActiveRecord/Base.html in gettext-1.91.0 vs doc/classes/ActiveRecord/Base.html in gettext-1.92.0

- old
+ new

@@ -84,17 +84,17 @@ <div id="method-list"> <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000128">columns_with_gettext</a>&nbsp;&nbsp; - <a href="#M000130">set_error_message_explanation</a>&nbsp;&nbsp; - <a href="#M000129">set_error_message_title</a>&nbsp;&nbsp; - <a href="#M000126">untranslate</a>&nbsp;&nbsp; - <a href="#M000127">untranslate?</a>&nbsp;&nbsp; - <a href="#M000124">untranslate_all</a>&nbsp;&nbsp; - <a href="#M000125">untranslate_all?</a>&nbsp;&nbsp; + <a href="#M000023">columns_with_gettext</a>&nbsp;&nbsp; + <a href="#M000025">set_error_message_explanation</a>&nbsp;&nbsp; + <a href="#M000024">set_error_message_title</a>&nbsp;&nbsp; + <a href="#M000021">untranslate</a>&nbsp;&nbsp; + <a href="#M000022">untranslate?</a>&nbsp;&nbsp; + <a href="#M000019">untranslate_all</a>&nbsp;&nbsp; + <a href="#M000020">untranslate_all?</a>&nbsp;&nbsp; </div> </div> </div> @@ -120,47 +120,47 @@ <!-- if method_list --> <div id="methods"> <h3 class="section-bar">Public Class methods</h3> - <div id="method-M000128" class="method-detail"> - <a name="M000128"></a> + <div id="method-M000023" class="method-detail"> + <a name="M000023"></a> <div class="method-heading"> - <a href="#M000128" class="method-signature"> + <a href="#M000023" class="method-signature"> <span class="method-name">columns_with_gettext</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000128-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000128-source"> + onclick="toggleCode('M000023-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000023-source"> <pre> - <span class="ruby-comment cmt"># File lib/gettext/active_record.rb, line 156</span> -156: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">columns_with_gettext</span> -157: <span class="ruby-keyword kw">unless</span> <span class="ruby-keyword kw">defined?</span> <span class="ruby-ivar">@columns</span> -158: <span class="ruby-ivar">@columns</span> = <span class="ruby-keyword kw">nil</span> -159: <span class="ruby-keyword kw">end</span> -160: <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@columns</span> -161: <span class="ruby-ivar">@columns</span> = <span class="ruby-identifier">columns_without_gettext</span> -162: <span class="ruby-ivar">@columns</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">column</span><span class="ruby-operator">|</span> -163: <span class="ruby-identifier">column</span>.<span class="ruby-identifier">table_class</span> = <span class="ruby-keyword kw">self</span> -164: } -165: <span class="ruby-keyword kw">end</span> -166: <span class="ruby-ivar">@columns</span> -167: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File lib/gettext/active_record.rb, line 184</span> +184: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">columns_with_gettext</span> +185: <span class="ruby-keyword kw">unless</span> <span class="ruby-keyword kw">defined?</span> <span class="ruby-ivar">@columns</span> +186: <span class="ruby-ivar">@columns</span> = <span class="ruby-keyword kw">nil</span> +187: <span class="ruby-keyword kw">end</span> +188: <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@columns</span> +189: <span class="ruby-ivar">@columns</span> = <span class="ruby-identifier">columns_without_gettext</span> +190: <span class="ruby-ivar">@columns</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">column</span><span class="ruby-operator">|</span> +191: <span class="ruby-identifier">column</span>.<span class="ruby-identifier">table_class</span> = <span class="ruby-keyword kw">self</span> +192: } +193: <span class="ruby-keyword kw">end</span> +194: <span class="ruby-ivar">@columns</span> +195: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000130" class="method-detail"> - <a name="M000130"></a> + <div id="method-M000025" class="method-detail"> + <a name="M000025"></a> <div class="method-heading"> - <a href="#M000130" class="method-signature"> + <a href="#M000025" class="method-signature"> <span class="method-name">set_error_message_explanation(msg)<br /> </span> </a> </div> @@ -180,27 +180,27 @@ <li>Returns: [single_msg, plural_msg] </li> </ul> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000130-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000130-source"> + onclick="toggleCode('M000025-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000025-source"> <pre> - <span class="ruby-comment cmt"># File lib/gettext/active_record.rb, line 194</span> -194: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_error_message_explanation</span>(<span class="ruby-identifier">msg</span>, <span class="ruby-identifier">plural_msg</span> = <span class="ruby-keyword kw">nil</span>) -195: <span class="ruby-constant">ActionView</span><span class="ruby-operator">::</span><span class="ruby-constant">Helpers</span><span class="ruby-operator">::</span><span class="ruby-constant">ActiveRecordHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">L10n</span>.<span class="ruby-identifier">set_error_message_explanation</span>(<span class="ruby-identifier">msg</span>, <span class="ruby-identifier">plural_msg</span>) -196: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File lib/gettext/active_record.rb, line 222</span> +222: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_error_message_explanation</span>(<span class="ruby-identifier">msg</span>, <span class="ruby-identifier">plural_msg</span> = <span class="ruby-keyword kw">nil</span>) +223: <span class="ruby-constant">ActionView</span><span class="ruby-operator">::</span><span class="ruby-constant">Helpers</span><span class="ruby-operator">::</span><span class="ruby-constant">ActiveRecordHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">L10n</span>.<span class="ruby-identifier">set_error_message_explanation</span>(<span class="ruby-identifier">msg</span>, <span class="ruby-identifier">plural_msg</span>) +224: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000129" class="method-detail"> - <a name="M000129"></a> + <div id="method-M000024" class="method-detail"> + <a name="M000024"></a> <div class="method-heading"> - <a href="#M000129" class="method-signature"> + <a href="#M000024" class="method-signature"> <span class="method-name">set_error_message_title(msg)<br /> </span> </a> </div> @@ -220,127 +220,127 @@ <li>Returns: [single_msg, plural_msg] </li> </ul> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000129-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000129-source"> + onclick="toggleCode('M000024-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000024-source"> <pre> - <span class="ruby-comment cmt"># File lib/gettext/active_record.rb, line 180</span> -180: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_error_message_title</span>(<span class="ruby-identifier">msg</span>, <span class="ruby-identifier">plural_msg</span> = <span class="ruby-keyword kw">nil</span>) -181: <span class="ruby-constant">ActionView</span><span class="ruby-operator">::</span><span class="ruby-constant">Helpers</span><span class="ruby-operator">::</span><span class="ruby-constant">ActiveRecordHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">L10n</span>.<span class="ruby-identifier">set_error_message_title</span>(<span class="ruby-identifier">msg</span>, <span class="ruby-identifier">plural_msg</span>) -182: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File lib/gettext/active_record.rb, line 208</span> +208: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_error_message_title</span>(<span class="ruby-identifier">msg</span>, <span class="ruby-identifier">plural_msg</span> = <span class="ruby-keyword kw">nil</span>) +209: <span class="ruby-constant">ActionView</span><span class="ruby-operator">::</span><span class="ruby-constant">Helpers</span><span class="ruby-operator">::</span><span class="ruby-constant">ActiveRecordHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">L10n</span>.<span class="ruby-identifier">set_error_message_title</span>(<span class="ruby-identifier">msg</span>, <span class="ruby-identifier">plural_msg</span>) +210: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000126" class="method-detail"> - <a name="M000126"></a> + <div id="method-M000021" class="method-detail"> + <a name="M000021"></a> <div class="method-heading"> - <a href="#M000126" class="method-signature"> + <a href="#M000021" class="method-signature"> <span class="method-name">untranslate</span><span class="method-args">(*w)</span> </a> </div> <div class="method-description"> <p> -Sets the <a href="Base.html#M000126">untranslate</a> columns. (e.g.) <a -href="Base.html#M000126">untranslate</a> :foo, :bar, :baz +Sets the <a href="Base.html#M000021">untranslate</a> columns. (e.g.) <a +href="Base.html#M000021">untranslate</a> :foo, :bar, :baz </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000126-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000126-source"> + onclick="toggleCode('M000021-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000021-source"> <pre> - <span class="ruby-comment cmt"># File lib/gettext/active_record.rb, line 139</span> -139: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">untranslate</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">w</span>) -140: <span class="ruby-identifier">ary</span> = <span class="ruby-ivar">@@gettext_untranslate_columns</span>[<span class="ruby-keyword kw">self</span>] <span class="ruby-operator">||</span> [] -141: <span class="ruby-identifier">ary</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">w</span>.<span class="ruby-identifier">collect</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">v</span>.<span class="ruby-identifier">to_s</span>} -142: <span class="ruby-ivar">@@gettext_untranslate_columns</span>[<span class="ruby-keyword kw">self</span>] = <span class="ruby-identifier">ary</span> -143: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File lib/gettext/active_record.rb, line 167</span> +167: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">untranslate</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">w</span>) +168: <span class="ruby-identifier">ary</span> = <span class="ruby-ivar">@@gettext_untranslate_columns</span>[<span class="ruby-keyword kw">self</span>] <span class="ruby-operator">||</span> [] +169: <span class="ruby-identifier">ary</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">w</span>.<span class="ruby-identifier">collect</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">v</span>.<span class="ruby-identifier">to_s</span>} +170: <span class="ruby-ivar">@@gettext_untranslate_columns</span>[<span class="ruby-keyword kw">self</span>] = <span class="ruby-identifier">ary</span> +171: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000127" class="method-detail"> - <a name="M000127"></a> + <div id="method-M000022" class="method-detail"> + <a name="M000022"></a> <div class="method-heading"> - <a href="#M000127" class="method-signature"> + <a href="#M000022" class="method-signature"> <span class="method-name">untranslate?</span><span class="method-args">(columnname)</span> </a> </div> <div class="method-description"> <p> Returns true if the column is set &quot;<a -href="Base.html#M000126">untranslate</a>&quot;. (e.g.) <a -href="Base.html#M000127">untranslate?</a> :foo +href="Base.html#M000021">untranslate</a>&quot;. (e.g.) <a +href="Base.html#M000022">untranslate?</a> :foo </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000127-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000127-source"> + onclick="toggleCode('M000022-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000022-source"> <pre> - <span class="ruby-comment cmt"># File lib/gettext/active_record.rb, line 147</span> -147: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">untranslate?</span>(<span class="ruby-identifier">columnname</span>) -148: <span class="ruby-identifier">ary</span> = <span class="ruby-ivar">@@gettext_untranslate_columns</span>[<span class="ruby-keyword kw">self</span>] <span class="ruby-operator">||</span> [] -149: <span class="ruby-identifier">ary</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">columnname</span>) -150: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File lib/gettext/active_record.rb, line 175</span> +175: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">untranslate?</span>(<span class="ruby-identifier">columnname</span>) +176: <span class="ruby-identifier">ary</span> = <span class="ruby-ivar">@@gettext_untranslate_columns</span>[<span class="ruby-keyword kw">self</span>] <span class="ruby-operator">||</span> [] +177: <span class="ruby-identifier">ary</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">columnname</span>) +178: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000124" class="method-detail"> - <a name="M000124"></a> + <div id="method-M000019" class="method-detail"> + <a name="M000019"></a> <div class="method-heading"> - <a href="#M000124" class="method-signature"> + <a href="#M000019" class="method-signature"> <span class="method-name">untranslate_all</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Untranslate all of the tablename/fieldnames in this model class. </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000124-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000124-source"> + onclick="toggleCode('M000019-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000019-source"> <pre> - <span class="ruby-comment cmt"># File lib/gettext/active_record.rb, line 128</span> -128: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">untranslate_all</span> -129: <span class="ruby-ivar">@@gettext_untranslate</span>[<span class="ruby-keyword kw">self</span>] = <span class="ruby-keyword kw">true</span> -130: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File lib/gettext/active_record.rb, line 156</span> +156: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">untranslate_all</span> +157: <span class="ruby-ivar">@@gettext_untranslate</span>[<span class="ruby-keyword kw">self</span>] = <span class="ruby-keyword kw">true</span> +158: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000125" class="method-detail"> - <a name="M000125"></a> + <div id="method-M000020" class="method-detail"> + <a name="M000020"></a> <div class="method-heading"> - <a href="#M000125" class="method-signature"> + <a href="#M000020" class="method-signature"> <span class="method-name">untranslate_all?</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> -Returns true if &quot;<a href="Base.html#M000124">untranslate_all</a>&quot; +Returns true if &quot;<a href="Base.html#M000019">untranslate_all</a>&quot; is called. Otherwise false. </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000125-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000125-source"> + onclick="toggleCode('M000020-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000020-source"> <pre> - <span class="ruby-comment cmt"># File lib/gettext/active_record.rb, line 133</span> -133: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">untranslate_all?</span> -134: <span class="ruby-ivar">@@gettext_untranslate</span>[<span class="ruby-keyword kw">self</span>] -135: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File lib/gettext/active_record.rb, line 161</span> +161: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">untranslate_all?</span> +162: <span class="ruby-ivar">@@gettext_untranslate</span>[<span class="ruby-keyword kw">self</span>] +163: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> \ No newline at end of file