Skip to content

Latest commit

 

History

History
181 lines (125 loc) · 7.81 KB

CHANGELOG.md

File metadata and controls

181 lines (125 loc) · 7.81 KB

Changelog

Not released

0.16.0

  • Fix default in models when default value is overridden by the same value, it is still sent to salesforce (#61)
  • Support to fetch multi-level associations during eager load (#62)

0.15.1

  • Revert new pluck implementation due to compatibility issues (#60)

0.15.0

  • Fix model defaults so data is persisted in Salesforce (#55)
  • Add pluck query method (#51)
  • Add #order method to active query that accepts arguments in several formats ( symbol, string that has raw soql) (#58)

0.14.0

  • Add scoped_as option to has_one association (#50)
  • Add default to model fields (#49)
  • Allow nil datetimes as :datetime fields (#52)

0.13.2

  • Add #loaded? method for ActiveQueries to allow the detection of records loaded in memory or pending to be loaded. (#45)
  • Use attributes' values_for_database (serialize) value instead of using the type casted value to allow more flexibility when creating your own ActiveModel type

0.13.1

  • Fix constructor of ActiveForce::RecordNotFound (#44)
  • Add .to_json and .as_json to SObject to allow JSON serialization (#37)
  • Memoize the ActiveForce::Mapping#mappings Hash since it is based on the fields and those are generally only set when the class is loaded. Also use Hash#key which returns the key for a value rather than Hash#invert which creates a new Hash with key/value inverted. (#41)

0.13.0

  • Add .find! to SObject (#39)

0.12.0

  • Add .describe to SObject to allow convenient metadata fetching (#36)

0.11.4

  • Properly escape single quote (#29)
  • Fix Time value formatting in .where (#28)

0.11.3

  • Fix has_one assignment when receiver does not have id (#23)

0.11.2

  • Fix: prevent association methods from running queries when keys do not exist (#20)

0.11.1

  • Fix datetime fields of SObjects to use iso(8601) format when sending to SF (#18)

0.11.0

  • Added support for 'or' and 'not' clauses (#13)
  • Added support for the SUM aggregate function (#14)
  • Allow model to be passed as a string or a constant (#16)

0.10.0

  • Fix #where chaining on ActiveQuery (#7)
  • Add #find_by! which raises ActiveForce::RecordNotFound if nothing is found. (#8)
  • Fix #includes to find, build, and set the association. (#12)

0.9.1

  • Fix invalid error class (#6)

0.9.0

  • Add support for Rails 7 and update Restforce dependency to newer version. (#3)
  • Add has_one association. (#3)
  • Model generator enhancements (#3):
    • automatically add types to fields
    • sort fields alphabetically
    • add table_name to class
    • add optional namespace parameter so generated models can be namespaced
  • Add get/set via [] and []= for SObject attributes. (#3)

0.7.1

  • Allow sfdc_client to be set. (#92)

0.7.0

  • Rails4-style conditional has_many associations (Dan Olson)
  • Add #includes query method to eager load has_many association. (Dan Olson)
  • Add #includes query method to eager load belongs_to association. (#65)
  • SObject#destroy method.

0.6.1

  • Fix missing require of 'restforce'. Now clients don't need to add an initializer.

0.6.0

0.5.0

0.4.2

0.3.2

  • Fixed gemspec.

0.3.1

  • Create different classes for associations. (#4)
  • Big refactor on has_many association. (Armando Andini)
  • Add a lot of specs and refactors. (Armando Andini)
  • Add a Finders module. (Armando Andini)
  • Add fist and last method to SObject.

0.2.0

  • Add belogns_to and has_many associations.
  • Changed when the SOQL query is sent to the client.
  • Add join method to query to use associtations.

0.1.0

  • Add query builder object to chain conditions.
  • Update update and create methods.
  • Add Campaing standard table name.

0.0.6.alfa

  • ActiveForce::SObject#table_name is auto populated using the class name. It adds "__c" to all non standard types.