doc/app/classes/Cms/Behaviors/DynamicAttributes/InstanceMethods.html in browsercms-3.0.6 vs doc/app/classes/Cms/Behaviors/DynamicAttributes/InstanceMethods.html in browsercms-3.1.0
- old
+ new
@@ -78,12 +78,12 @@
<div id="method-list">
<h3 class="section-bar">Methods</h3>
<div class="name-list">
- <a href="#M000357">dynamic_attributes</a>
- <a href="#M000356">is_dynamic_attribute?</a>
+ <a href="#M000399">dynamic_attributes</a>
+ <a href="#M000398">is_dynamic_attribute?</a>
</div>
</div>
</div>
@@ -101,15 +101,15 @@
<!-- if method_list -->
<div id="methods">
<h3 class="section-bar">Public Instance methods</h3>
- <div id="method-M000357" class="method-detail">
- <a name="M000357"></a>
+ <div id="method-M000399" class="method-detail">
+ <a name="M000399"></a>
<div class="method-heading">
- <a href="#M000357" class="method-signature">
+ <a href="#M000399" class="method-signature">
<span class="method-name">dynamic_attributes</span><span class="method-args">(model)</span>
</a>
</div>
<div class="method-description">
@@ -118,40 +118,40 @@
if any field is allowed. If you want to say no field is allowed then return
an empty array. If you just have a static list the :fields option is most
likely easier.
</p>
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000357-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000357-source">
+ onclick="toggleCode('M000399-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000399-source">
<pre>
<span class="ruby-comment cmt"># File lib/cms/behaviors/dynamic_attributes.rb, line 217</span>
217: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dynamic_attributes</span>(<span class="ruby-identifier">model</span>); <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
- <div id="method-M000356" class="method-detail">
- <a name="M000356"></a>
+ <div id="method-M000398" class="method-detail">
+ <a name="M000398"></a>
<div class="method-heading">
- <a href="#M000356" class="method-signature">
+ <a href="#M000398" class="method-signature">
<span class="method-name">is_dynamic_attribute?</span><span class="method-args">(attr, model)</span>
</a>
</div>
<div class="method-description">
<p>
Will determine if the given attribute is a dynamic attribute on the given
model. Override this in your class to provide custom logic if the <a
-href="InstanceMethods.html#M000357">dynamic_attributes</a> method or the
+href="InstanceMethods.html#M000399">dynamic_attributes</a> method or the
:fields option are not flexible enough. If you override this method :fields
-and <a href="InstanceMethods.html#M000357">dynamic_attributes</a> will not
+and <a href="InstanceMethods.html#M000399">dynamic_attributes</a> will not
apply at all unless you implement them yourself.
</p>
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000356-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000356-source">
+ onclick="toggleCode('M000398-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000398-source">
<pre>
<span class="ruby-comment cmt"># File lib/cms/behaviors/dynamic_attributes.rb, line 204</span>
204: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_dynamic_attribute?</span>(<span class="ruby-identifier">attr</span>, <span class="ruby-identifier">model</span>)
205: <span class="ruby-identifier">attr</span> = <span class="ruby-identifier">attr</span>.<span class="ruby-identifier">to_s</span>
206: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">dynamic_options</span>[<span class="ruby-identifier">model</span>.<span class="ruby-identifier">name</span>][<span class="ruby-identifier">:fields</span>].<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">attr</span>) <span class="ruby-keyword kw">unless</span>
\ No newline at end of file