Skip to content

Commit 64cedae

Browse files
authored
Merge pull request #315 from pilaf/fix-schema-assign-example
Fix example in AR::Base.schema='s documentation
2 parents 3fbbef1 + 38bfb0a commit 64cedae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_resource/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def schema(&block)
409409
# example:
410410
#
411411
# class Person < ActiveResource::Base
412-
# schema = {'name' => :string, 'age' => :integer }
412+
# self.schema = {'name' => :string, 'age' => :integer }
413413
# end
414414
#
415415
# The keys/values can be strings or symbols. They will be converted to

0 commit comments

Comments
 (0)