Skip to content

Commit

Permalink
Use symbols for attribute hash
Browse files Browse the repository at this point in the history
Change-Id: I9597b4f77fe9b6d68e057ae05ae7c7ca12504681
  • Loading branch information
avsej committed Apr 4, 2012
1 parent cd3d933 commit 42d7fb4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/couchbase/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ def self.attribute(*names)
options = names.pop
end
names.each do |name|
name = name.to_sym
define_method(name) do
@_attributes[name]
end
Expand Down

0 comments on commit 42d7fb4

Please sign in to comment.