Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ananthakumaran authored and jasondew committed Apr 16, 2012
1 parent 20aa9f3 commit d9b635c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/dynamoid/fields.rb
Expand Up @@ -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

Expand Down

0 comments on commit d9b635c

Please sign in to comment.