Skip to content

Commit

Permalink
Removed alias methods :pk, and :primary_key to work around Ruby 1.9 i…
Browse files Browse the repository at this point in the history
…ssue
  • Loading branch information
chicks committed Jan 4, 2011
1 parent 92fe72e commit 5253773
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions lib/sugarcrm/attributes/attribute_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ def attributes_from_module_fields
end
end

# TODO: Object.id is not being updated properly. Figure out why...
alias :pk :id
alias :primary_key :id

# Determines if attributes or associations have been changed
def changed?
return true if attributes_changed?
Expand Down
2 changes: 1 addition & 1 deletion lib/sugarcrm/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def establish_connection(url, user, pass, opts={})
@debug = options[:debug]
@@connection = SugarCRM::Connection.new(url, user, pass, options)
end

def find(*args)
options = args.extract_options!
validate_find_options(options)
Expand Down

0 comments on commit 5253773

Please sign in to comment.