pg_search
https://github.com/casecommons/pg_search
Ruby
pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search
Service#updated_properties
Returns a hash of the properties that have been assigned a new value since last save, indicating their original values (attr => original value). ActiveRecord does not provide a mechanism to track changes in serialized keys, so we need a specific implementation for service properties. This allows to track changes to properties set with the accessor methods, but not direct manipulation of properties hash.
Edit
git clone [email protected]:casecommons/pg_search.git
cd pg_search
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Service-updated_properties-for-pr
# Commit to gitgit add git commit -m "better docs for Service#updated_properties"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Service-updated_properties-for-pr
hub pull-request
# Celebrate!