aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-08-04 17:02:38 -0400
committerNeeraj Singh <neerajdotname@gmail.com>2010-08-04 17:03:03 -0400
commit589e6977d72b232b6e1af5ef508beddffbcd5f4c (patch)
tree5e72068d4e0d9c7330d87c564625ea2f7b13614f /activemodel
parent7745f716a175b680f140c7b735261e5a3064e7e9 (diff)
downloadrails-589e6977d72b232b6e1af5ef508beddffbcd5f4c.tar.gz
rails-589e6977d72b232b6e1af5ef508beddffbcd5f4c.tar.bz2
rails-589e6977d72b232b6e1af5ef508beddffbcd5f4c.zip
adding documentation to ActiveSupport::Concern ht:strictly typed for an awesome example
some minor documentation changes
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/serialization.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activemodel/lib/active_model/serialization.rb b/activemodel/lib/active_model/serialization.rb
index 5670ec74cb..e675937f4d 100644
--- a/activemodel/lib/active_model/serialization.rb
+++ b/activemodel/lib/active_model/serialization.rb
@@ -61,6 +61,8 @@ module ActiveModel
# person.serializable_hash # => {"name"=>"Bob"}
# person.to_json # => "{\"name\":\"Bob\"}"
# person.to_xml # => "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<serial-person...
+ #
+ # Valid options are <tt>:only</tt>, <tt>:except</tt> and <tt>:methods</tt> .
module Serialization
def serializable_hash(options = nil)
options ||= {}