Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

Trying to update a non-declared field should fail loudly. #104

Open
sdeframond opened this issue Jun 25, 2015 · 1 comment
Open

Trying to update a non-declared field should fail loudly. #104

sdeframond opened this issue Jun 25, 2015 · 1 comment
Labels

Comments

@sdeframond
Copy link

Given:

class Case < ActiveForce::SObject
  field :id, from: 'Id'
end

kase = Case.find 123

kase.update_attributes! foo: 'bar' # This should fail loudly.

When trying to update an attribute not declared, ActiveForce should fail loudly. Instead it just ignores the parameter, without even sending it to Salesforce API (which would at least complain).

@eloyesp
Copy link
Contributor

eloyesp commented Jul 7, 2015

It is related to #95 or may be to ActiveModel (I'm not sure if that works the same in Rails).

@eloyesp eloyesp added the bug label Jul 7, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants