Module: Acta::Serializable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/acta/serializable.rb
Instance Method Summary collapse
Instance Method Details
#to_acta_hash ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/acta/serializable.rb', line 35 def to_acta_hash opts = self.class. hash = attributes if opts[:only] hash.slice(*opts[:only]) elsif opts[:except] hash.except(*opts[:except]) else hash end end |