diff --git a/lib/pipedrive/organization.rb b/lib/pipedrive/organization.rb index 5bafd0b..b1874a7 100644 --- a/lib/pipedrive/organization.rb +++ b/lib/pipedrive/organization.rb @@ -12,9 +12,9 @@ def deals class << self def find_or_create_by_name(name, opts={}) - find_by_name(name).first || create(opts.merge(:title => name)) + find_by_name(name).first || create(opts.merge(:name => name)) end end end -end \ No newline at end of file +end