diff options
author | Xavier Noria <fxn@hashref.com> | 2008-08-18 02:14:53 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2008-08-18 02:14:53 +0200 |
commit | 48f56bf2beace63a20b0def4176274804e088c55 (patch) | |
tree | 9e34dad238509f65c74647b3b17659c94ba9fed9 | |
parent | cd2e535a8bd6f32002550e1e6bc25957e8bbd872 (diff) | |
download | rails-48f56bf2beace63a20b0def4176274804e088c55.tar.gz rails-48f56bf2beace63a20b0def4176274804e088c55.tar.bz2 rails-48f56bf2beace63a20b0def4176274804e088c55.zip |
escaped some otherwise autolinked words
-rw-r--r-- | activerecord/lib/active_record/associations/association_proxy.rb | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/activerecord/lib/active_record/associations/association_proxy.rb b/activerecord/lib/active_record/associations/association_proxy.rb index cf09ab7043..78b4c137a7 100644 --- a/activerecord/lib/active_record/associations/association_proxy.rb +++ b/activerecord/lib/active_record/associations/association_proxy.rb @@ -39,7 +39,7 @@ module ActiveRecord # though the object behind <tt>blog.posts</tt> is not an Array, but an # ActiveRecord::Associations::HasManyAssociation. # - # The <tt>@target</tt> object is not loaded until needed. For example, + # The <tt>@target</tt> object is not \loaded until needed. For example, # # blog.posts.count # @@ -68,18 +68,18 @@ module ActiveRecord @reflection end - # Returns the target of the proxy, same as +target+. + # Returns the \target of the proxy, same as +target+. def proxy_target @target end - # Does the proxy or its target respond to +symbol+? + # Does the proxy or its \target respond to +symbol+? def respond_to?(symbol, include_priv = false) proxy_respond_to?(symbol, include_priv) || (load_target && @target.respond_to?(symbol, include_priv)) end - # Forwards <tt>===</tt> explicitly to the target because the instance method - # removal above doesn't catch it. Loads the target if needed. + # Forwards <tt>===</tt> explicitly to the \target because the instance method + # removal above doesn't catch it. Loads the \target if needed. def ===(other) load_target other === @target @@ -100,25 +100,25 @@ module ActiveRecord end alias :sql_conditions :conditions - # Resets the loaded flag to +false+ and sets the target to +nil+. + # Resets the \loaded flag to +false+ and sets the \target to +nil+. def reset @loaded = false @target = nil end - # Reloads the target and returns +self+ on success. + # Reloads the \target and returns +self+ on success. def reload reset load_target self unless @target.nil? end - # Has the target been already loaded? + # Has the \target been already \loaded? def loaded? @loaded end - # Asserts the target has been loaded setting the loaded flag to +true+. + # Asserts the \target has been loaded setting the \loaded flag to +true+. def loaded @loaded = true end @@ -128,13 +128,13 @@ module ActiveRecord @target end - # Sets the target of this proxy to +target+, and the loaded flag to +true+. + # Sets the target of this proxy to <tt>\target</tt>, and the \loaded flag to +true+. def target=(target) @target = target loaded end - # Forwards the call to the target. Loads the target if needed. + # Forwards the call to the target. Loads the \target if needed. def inspect load_target @target.inspect @@ -206,7 +206,7 @@ module ActiveRecord end private - # Forwards any missing method call to the target. + # Forwards any missing method call to the \target. def method_missing(method, *args) if load_target if block_given? @@ -217,16 +217,16 @@ module ActiveRecord end end - # Loads the target if needed and returns it. + # Loads the \target if needed and returns it. # # This method is abstract in the sense that it relies on +find_target+, # which is expected to be provided by descendants. # - # If the target is already loaded it is just returned. Thus, you can call - # +load_target+ unconditionally to get the target. + # If the \target is already \loaded it is just returned. Thus, you can call + # +load_target+ unconditionally to get the \target. # # ActiveRecord::RecordNotFound is rescued within the method, and it is - # not reraised. The proxy is reset and +nil+ is the return value. + # not reraised. The proxy is \reset and +nil+ is the return value. def load_target return nil unless defined?(@loaded) |