Permalink
Browse files

remove class reference for method

  • Loading branch information...
1 parent 00ad3e4 commit d547ab427ee1bac640da2c4d3018da10e7f251d4 @marcusbaguley marcusbaguley committed Apr 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/db_reference/active_record_ext.rb
@@ -10,7 +10,7 @@ module ClassMethods
# If it exists, it is updated with the given options.
#
# Returns the record.
- def self.update_or_create(attributes = {})
+ def update_or_create(attributes = {})
id = attributes.delete(:id)
record = find_or_initialize_by_id(id)
record.attributes = attributes

0 comments on commit d547ab4

Please sign in to comment.