Module: ActivePubsub::Publishable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/active_pubsub/publishable.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- PUBLISHABLE_ACTIONS =
["updated", "created", "destroyed"]
Instance Method Summary collapse
-
#attributes_hash ⇒ Object
todo: investigate why specs break if && hash is omitted.
Instance Method Details
#attributes_hash ⇒ Object
todo: investigate why specs break if && hash is omitted
21 22 23 24 25 26 |
# File 'lib/active_pubsub/publishable.rb', line 21 def attributes_hash hash = self.as_json hash.merge!(:changes => previous_changes) if previous_changes && hash hash.symbolize_keys! if hash hash end |