From 700dd0014b8c19651650923dff28912e7d3607b9 Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Mon, 7 May 2012 20:43:04 +0530 Subject: Revert "fixing active model links in readme" This reverts commit c962680e1902d2c9474f0be8ba7b0b8ab361cae6. Reason: The links must be relative to work in both edge and stable api sites. --- activemodel/README.rdoc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'activemodel/README.rdoc') diff --git a/activemodel/README.rdoc b/activemodel/README.rdoc index 1485709991..0c7089598c 100644 --- a/activemodel/README.rdoc +++ b/activemodel/README.rdoc @@ -53,7 +53,7 @@ behavior out of the box: person.clear_name person.clear_age - {Learn more}[http://api.rubyonrails.org/classes/ActiveModel/AttributeMethods.html] + {Learn more}[link:classes/ActiveModel/AttributeMethods.html] * Callbacks for certain operations @@ -71,7 +71,7 @@ behavior out of the box: This generates +before_create+, +around_create+ and +after_create+ class methods that wrap your create method. - {Learn more}[http://api.rubyonrails.org/classes/ActiveModel/Callbacks.html] + {Learn more}[link:classes/ActiveModel/Callbacks.html] * Tracking value changes @@ -88,7 +88,7 @@ behavior out of the box: person.save person.previous_changes # => {'name' => ['bob, 'robert']} - {Learn more}[http://api.rubyonrails.org/classes/ActiveModel/Dirty.html] + {Learn more}[link:classes/ActiveModel/Dirty.html] * Adding +errors+ interface to objects @@ -116,7 +116,7 @@ behavior out of the box: person.errors.full_messages # => ["Name can not be nil"] - {Learn more}[http://api.rubyonrails.org/classes/ActiveModel/Errors.html] + {Learn more}[link:classes/ActiveModel/Errors.html] * Model name introspection @@ -127,7 +127,7 @@ behavior out of the box: NamedPerson.model_name # => "NamedPerson" NamedPerson.model_name.human # => "Named person" - {Learn more}[http://api.rubyonrails.org/ActiveModel/Naming.html] + {Learn more}[link:classes/ActiveModel/Naming.html] * Observer support @@ -145,7 +145,7 @@ behavior out of the box: end end - {Learn more}[http://api.rubyonrails.org/classes/ActiveModel/Observer.html] + {Learn more}[link:classes/ActiveModel/Observer.html] * Making objects serializable @@ -157,7 +157,7 @@ behavior out of the box: s.to_json # => "{\"name\":null}" s.to_xml # => "\n "My attribute" - {Learn more}[http://api.rubyonrails.org/classes/ActiveModel/Translation.html] + {Learn more}[link:classes/ActiveModel/Translation.html] * Validation support @@ -186,7 +186,7 @@ behavior out of the box: person.first_name = 'zoolander' person.valid? # => false - {Learn more}[http://api.rubyonrails.org/classes/ActiveModel/Validations.html] + {Learn more}[link:classes/ActiveModel/Validations.html] * Custom validators @@ -208,7 +208,7 @@ behavior out of the box: p.name = "Bob" p.valid? # => true - {Learn more}[http://api.rubyonrails.org/classes/ActiveModel/Validator.html] + {Learn more}[link:classes/ActiveModel/Validator.html] == Download and installation -- cgit v1.2.3