Sha256: b5cf6f36ca636dde651ad4ddd799e45184bdf083a224865e68db5827e0ea4080
Contents?: true
Size: 297 Bytes
Versions: 2
Compression:
Stored size: 297 Bytes
Contents
module CurrencyCloud module Actions module Save def save return self if changed_attributes.empty? params = Hash[changed_attributes.map { |k| [k, self.send(k)] }] post(id, params) changed_attributes.clear self end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
currency_cloud-0.7.1 | lib/currency_cloud/actions/save.rb |
currency_cloud-0.7 | lib/currency_cloud/actions/save.rb |