Permalink
Browse files

cleanup

  • Loading branch information...
1 parent 20aa9f3 commit d9b635c411f19e91ff15960e182755f52e0f18ac @ananthakumaran ananthakumaran committed with Mar 28, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/dynamoid/fields.rb
View
3 lib/dynamoid/fields.rb
@@ -34,8 +34,7 @@ def field(name, type = :string, options = {})
define_method("#{named}?") { !read_attribute(named).nil? }
define_method("#{named}=") {|value| write_attribute(named, value) }
- undefine_attribute_methods
- define_attribute_methods(self.attributes.keys)
+ define_attribute_method(name)
end
end

0 comments on commit d9b635c

Please sign in to comment.