diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-05-14 11:38:23 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-05-14 11:38:23 -0500 |
commit | 00c94d7d94ba9c32a10fd52885c23d434aa99951 (patch) | |
tree | 249dafa261568dcb1b191be5756ce0708c7e0320 /activemodel | |
parent | 05234b358f2d8fabb41b16a4a7a8d676bc31dcd3 (diff) | |
download | rails-00c94d7d94ba9c32a10fd52885c23d434aa99951.tar.gz rails-00c94d7d94ba9c32a10fd52885c23d434aa99951.tar.bz2 rails-00c94d7d94ba9c32a10fd52885c23d434aa99951.zip |
updating define_attribute_methods documentation
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/README.rdoc | 2 | ||||
-rw-r--r-- | activemodel/lib/active_model/dirty.rb | 2 | ||||
-rw-r--r-- | activemodel/test/cases/dirty_test.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/activemodel/README.rdoc b/activemodel/README.rdoc index 0c7089598c..b4565b5881 100644 --- a/activemodel/README.rdoc +++ b/activemodel/README.rdoc @@ -41,7 +41,7 @@ behavior out of the box: include ActiveModel::AttributeMethods attribute_method_prefix 'clear_' - define_attribute_methods [:name, :age] + define_attribute_methods :name, :age attr_accessor :name, :age diff --git a/activemodel/lib/active_model/dirty.rb b/activemodel/lib/active_model/dirty.rb index 3d35b5bb6f..3f2fd12db7 100644 --- a/activemodel/lib/active_model/dirty.rb +++ b/activemodel/lib/active_model/dirty.rb @@ -30,7 +30,7 @@ module ActiveModel # # include ActiveModel::Dirty # - # define_attribute_methods [:name] + # define_attribute_methods :name # # def name # @name diff --git a/activemodel/test/cases/dirty_test.rb b/activemodel/test/cases/dirty_test.rb index 98244a6290..eaaf910bac 100644 --- a/activemodel/test/cases/dirty_test.rb +++ b/activemodel/test/cases/dirty_test.rb @@ -3,7 +3,7 @@ require "cases/helper" class DirtyTest < ActiveModel::TestCase class DirtyModel include ActiveModel::Dirty - define_attribute_methods [:name, :color] + define_attribute_methods :name, :color def initialize @name = nil |